Message384850
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:18 | vstinner | set | recipients:
+ vstinner, YannickJadoul |
2021-01-11 17:05:18 | vstinner | set | messageid: <1610384718.55.0.629763678103.issue42882@roundup.psfhosted.org> |
2021-01-11 17:05:18 | vstinner | link | issue42882 messages |
2021-01-11 17:05:18 | vstinner | create | |
|