summaryrefslogtreecommitdiffstats
path: root/Lib/test/_test_embed_structseq.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-46417: Finalize structseq types at exit (GH-30645)Victor Stinner2022-01-211-0/+55
Add _PyStructSequence_FiniType() and _PyStaticType_Dealloc() functions to finalize a structseq static type in Py_Finalize(). Currrently, these functions do nothing if Python is built in release mode. Clear static types: * AsyncGenHooksType: sys.set_asyncgen_hooks() * FlagsType: sys.flags * FloatInfoType: sys.float_info * Hash_InfoType: sys.hash_info * Int_InfoType: sys.int_info * ThreadInfoType: sys.thread_info * UnraisableHookArgsType: sys.unraisablehook * VersionInfoType: sys.version * WindowsVersionType: sys.getwindowsversion()