Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Open
Description
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.