This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Thrameos, serhiy.storchaka
Date 2020-12-25.11:47:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608896851.37.0.235306853896.issue42731@roundup.psfhosted.org>
In-reply-to
Content
There is no longer PyString in Python, only PyUnicode.

There are plans to get rid of PyUnicode_READY(). After removing support of "legacy" Unicode objects (which will happen in few years), PyUnicode_READY() will be no longer needed, so all calls of it could be removed. Currently there is a last chance to redesign it for other purposes. I suggest to discuss this on one of mailing lists (Python-ideas or even Python-Dev) with wider auditory, as it can have large impact on the future of C API.

Although I am not sure that PyUnicode_READY() is called in all needed cases. It just happen that the code is not tested intensively with "legacy" Unicode objects because in normal case you get already ready objects. Actually, functions like _PyUnicode_EqualToASCIIString do not call it intentionally and read the Py_UNICODE content of non-ready Unicode objects directly.
History
Date User Action Args
2020-12-25 11:47:31serhiy.storchakasetrecipients: + serhiy.storchaka, Thrameos
2020-12-25 11:47:31serhiy.storchakasetmessageid: <1608896851.37.0.235306853896.issue42731@roundup.psfhosted.org>
2020-12-25 11:47:31serhiy.storchakalinkissue42731 messages
2020-12-25 11:47:31serhiy.storchakacreate