3 ms·
> shipping binary only Python extensions can be such a pain, especially dealing with 2-byte vs 4-byte unicode representation issues The issue with different Un
by ptx 9y ago
> shipping binary only Python extensions can be such a pain, especially dealing with 2-byte vs 4-byte unicode representation issues
The issue with different Unicode builds was fixed 5 years ago, in Python 3.3:
https://docs.python.org/3/whatsnew/3.3.html#pep-393-flexible-string-representation https://docs.python.org/3/whatsnew/3.3.html#pep-393-flexible...
- protomok 9y agoYes it's nice to see this is now fixed. In my case I need to support Python 2.7 though, and for Python 2.7 the only workaround I know of is shipping two binaries (2 byte and 4 byte encoding) then loading the correct module at runtime.