3 ms·
No. RPython still supports unicode strings. It now also supports utf8 string classes for things like regular expressions and ffi calls. PyPy just uses the non-u
by mattip 8y ago
No. RPython still supports unicode strings. It now also supports utf8 string classes for things like regular expressions and ffi calls. PyPy just uses the non-unicode rpython apis.
- akvadrako 8y agoUTF-8 is Unicode - your post doesn’t make much sense.
- mattip 8y agoIn rpython (a restricted python2 language) unicode refers to a specific python object. Utf-8 classes refers to rpython classes that hold a bytes, not unicode, but are aware of the encoding of the bytes.
- simcop2387 8y agoUTF-8 is one way to encode Unicode code points. There's also UTF-16LE, UTF16-BE, UTF-32LE, UTF-32BE, and others like UTF-7. This makes pypy use UTF-8 internally for the additional memory and speed savings, at the cost of some time later on when you use certain features that require the string index to be built.