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 vstinner
Recipients corona10, erlendaasland, serhiy.storchaka, vstinner
Date 2021-12-07.17:21:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Serhiy: Do you recall the idea of the PyUnicode_CHECK_INTERNED() optimization?

The PyUnicode_CHECK_INTERNED() test is as old as the _PyUnicode_EqualToASCIIId() function.

commit f5894dd646f5e39918377b37b8c8694cebdca103
Author: Serhiy Storchaka <>
Date:   Wed Nov 16 15:40:39 2016 +0200

    Issue #28701: Replace _PyUnicode_CompareWithId with _PyUnicode_EqualToASCIIId.
    The latter function is more readable, faster and doesn't raise exceptions.
    Based on patch by Xiang Zhang.
Date User Action Args
2021-12-07 17:21:43vstinnersetrecipients: + vstinner, serhiy.storchaka, corona10, erlendaasland
2021-12-07 17:21:43vstinnersetmessageid: <>
2021-12-07 17:21:43vstinnerlinkissue46006 messages
2021-12-07 17:21:43vstinnercreate