_PyStaticType_Dealloc
should not exist.
#101603
Labels
interpreter-core
(Objects, Python, Grammar, and Parser dirs)
type-bug
An unexpected behavior, bug, or error
This the twin to #96458, and the same reasoning applies.
If something is static it cannot be deallocated.
AFAICT, this clears subclasses of the static type, and doesn't deallocate the class.
The (class, subclass) relation for static types is an attribute of the interpreter not the class, so
_PyStaticType_Dealloc
needs to be renamed, at least._PyStaticType_Dealloc
also allocatesint
objects, which is problematic during interpreter cleanup, as theMemoryError
cache may be cleared first.The text was updated successfully, but these errors were encountered: