[Python-ideas] Alternative Unicode implementations (NSString/NSMutableString)
Victor Stinner
victor.stinner at gmail.com
Wed Jul 19 07:38:18 EDT 2017
2017-07-19 4:34 GMT+02:00 Nick Coghlan <ncoghlan at gmail.com>:
> 2. Indicate that it's a "lazily rendered" subclass that should hold
> off on calling PyUnicode_Ready for as long as possible, but still do
> so when necessary (akin to creating strings via the old Py_UNICODE
> APIs and then calling PyUnicode_READY on them)
Py_UNICODE is deprecated and should go away in the long term. Serhiy
Storchaka started to deprecate APIs using Py_UNICODE.
We call PyUnicode_READY() *everywhere* to cast "legacy string" to the
new compact format *as soon as possible*.
So I don't think that you should abuse this machinery :-(
Victor
More information about the Python-ideas
mailing list