hai shi <shihai1...@126.com> added the comment:
> Py_Finalize() calls _PyUnicode_ClearInterned() which clears interned strings. > Which strings are still alive after Py_Finalize()? Yes.especially those encodings, interpreter leaks much encodings refcount after Py_Finalize(). I am not sure they are corner cases or not. Maybe we could check it again afer we have done all convert works. No matter how many times `Py_Initialize(); Py_Finalize();` have called, Holding a same interned of unicodeobject.c all the time sound like a stupied idea. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue1635741> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com