Thrameos / jpype

Thrameos personal sandbox for enhancements to jpype to send to originell.
Other
0 stars 1 forks source link

Str/Unicode #33

Closed Thrameos closed 4 years ago

Thrameos commented 6 years ago

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.

Thrameos commented 4 years ago

Python 2 is dead.