diff options
author | Victor Stinner <vstinner@python.org> | 2020-07-01 23:19:57 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-01 23:19:57 (GMT) |
commit | 666ecfb0957a2fa0df5e2bd03804195de74bdfbf (patch) | |
tree | 7d848ed239aeeece4ac47aaec793d1368d531b78 /Include | |
parent | 90db4653ae37ef90754cfd2cd6ec6857b87a88e6 (diff) | |
download | cpython-666ecfb0957a2fa0df5e2bd03804195de74bdfbf.zip cpython-666ecfb0957a2fa0df5e2bd03804195de74bdfbf.tar.gz cpython-666ecfb0957a2fa0df5e2bd03804195de74bdfbf.tar.bz2 |
bpo-1635741: Release Unicode interned strings at exit (GH-21269)
* PyUnicode_InternInPlace() now ensures that interned strings are
ready.
* Add _PyUnicode_ClearInterned().
* Py_Finalize() now releases Unicode interned strings:
call _PyUnicode_ClearInterned().
Diffstat (limited to 'Include')
-rw-r--r-- | Include/internal/pycore_pylifecycle.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_pylifecycle.h b/Include/internal/pycore_pylifecycle.h index bffc95b..22def3d 100644 --- a/Include/internal/pycore_pylifecycle.h +++ b/Include/internal/pycore_pylifecycle.h @@ -78,6 +78,7 @@ extern void _PyGC_Fini(PyThreadState *tstate); extern void _PyType_Fini(void); extern void _Py_HashRandomization_Fini(void); extern void _PyUnicode_Fini(PyThreadState *tstate); +extern void _PyUnicode_ClearInterned(PyThreadState *tstate); extern void _PyLong_Fini(PyThreadState *tstate); extern void _PyFaulthandler_Fini(void); extern void _PyHash_Fini(void); |