diff options
Diffstat (limited to 'swig/slv2.i')
-rw-r--r-- | swig/slv2.i | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/swig/slv2.i b/swig/slv2.i index 7d0c664..cb5279a 100644 --- a/swig/slv2.i +++ b/swig/slv2.i @@ -27,4 +27,10 @@ namespace SLV2 { return Iterator(self) %} }; +%extend Value { +%pythoncode %{ + def __str__(self): + return slv2_value_get_turtle_token(self.me) +%} +}; } |