3 ms·
I've been evaluating Cython for both code obfuscation and for using C based extensions to improve performance. Cython is pretty nice, but shipping binary only P
by protomok 9y ago
I've been evaluating Cython for both code obfuscation and for using C based extensions to improve performance. Cython is pretty nice, but shipping binary only Python extensions can be such a pain, especially dealing with 2-byte vs 4-byte unicode representation issues.
I need to try Go one of these days !
- 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.
- mixmastamyk 9y ago> especially dealing with 2-byte vs 4-byte unicode Wasn’t that solved years ago?