> Shouldn't Python automatically Do The Right Thing in that case? That > would mean wrapping the UCS4 calls in a conversion layer, which > isn't hard. I mean, it's just a question of adding or taking away > zeroes, right? :) Given the smiley at the end of your message, I don't know whether you meant your point seriously or not. I believe it is impossible for Python to do what you seem to think as the "Right Thing". E.g. modules that use PyUnicode_AS_UNICODE will behave differently when sizeof(Py_UNICODE) changes. Since this is a macro, you cannot change their behavior at run-time; they have assumption on the size of Py_UNICODE compiled-in. Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4