{{ message }}
Commit 44bf57a
authored
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.
1 parent fb35fa4 commit 44bf57a
3 files changed
Lines changed: 11 additions & 1 deletion
File tree
- Include/internal
- Misc/NEWS.d/next/Core and Builtins
- Python
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |

0 commit comments