27 Oct
2019
27 Oct
'19
7:39 a.m.
On Oct 26, 2019, at 21:33, Steven D'Aprano
IronPython and Jython use whatever .Net and Java use.
Which makes them sequences of UTF-16 code units, not code points. Which is allowed for the Python 2.x unicode type, but would violate the rules for 3.x str, but neither one has a 3.x. If you want to deal with code points, you have to handle surrogates manually. (Actually, IIRC, one of the two has a str type that, despite being 2.x, is unicode rather than bytes, but with some extra undocumented functionality to smuggle bytes around in a str and have it sometimes work.)