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 YannickJadoul, vstinner
Date 2021-01-11.17:05:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Oh. In _PyUnicode_FromId(), I made the assumption that _PyRuntime is left unchanged when Py_Initialize()Py_Finalize() is called multiple times. But I was wrong, it is always reset to zero. So I wrote PR 24193 to explicitly save/restore _PyRuntime.unicode_ids.next_index value.

Using PR 24193, msg384761 example displays "Works" instead of failing with a Python fatal error.
Date User Action Args
2021-01-11 17:05:18vstinnersetrecipients: + vstinner, YannickJadoul
2021-01-11 17:05:18vstinnersetmessageid: <>
2021-01-11 17:05:18vstinnerlinkissue42882 messages
2021-01-11 17:05:18vstinnercreate