SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 571 Python

bpo-42882: _PyRuntimeState_Init() leaves unicode next_index unchanged (GH-24193)

Fix the _PyUnicode_FromId() function (_Py_IDENTIFIER(var) API) when
Py_Initialize() / Py_Finalize() is called multiple times:
preserve _PyRuntime.unicode_ids.next_index value.

Use _PyRuntimeState_INIT macro instead memset(0) to reset
_PyRuntimeState members to zero.
V
Victor Stinner committed
44bf57aca627bd11a08b12fe4e4b6a0e1d268862
Parent: fb35fa4
Committed by GitHub <noreply@github.com> on 1/12/2021, 9:29:45 AM