]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46417: Clear Unicode static types at exit (GH-30806)
authorVictor Stinner <vstinner@python.org>
Sat, 22 Jan 2022 21:55:39 +0000 (22:55 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Jan 2022 21:55:39 +0000 (22:55 +0100)
commit1626bf4ac7aef1244e6f886e63a31f7ed65fbd10
tree21e80b2b17eaff62c94f0cecd764e7f7ddba6265
parent621a45ccacd121f9ae4d8a539f040410c74b253b
bpo-46417: Clear Unicode static types at exit (GH-30806)

Add _PyUnicode_FiniTypes() function, called by
finalize_interp_types(). It clears these static types:

* EncodingMapType
* PyFieldNameIter_Type
* PyFormatterIter_Type

_PyStaticType_Dealloc() now does nothing if tp_subclasses
is not NULL.
Include/internal/pycore_unicodeobject.h
Objects/exceptions.c
Objects/object.c
Objects/typeobject.c
Objects/unicodeobject.c
Python/pylifecycle.c