In the devel version I make it automatically select between unicode and str for Python 2.7 where there is a difference. Python 3 is always str (which is unicode). But Python 2 expects __str__ to always produce a str regardless of whether it is really a unicode rep or not.
We need to add specific methods that force it to the correct type for toString on Python 2.x.
In the devel version I make it automatically select between unicode and str for Python 2.7 where there is a difference. Python 3 is always str (which is unicode). But Python 2 expects
__str__
to always produce a str regardless of whether it is really a unicode rep or not.We need to add specific methods that force it to the correct type for
toString
on Python 2.x.