`_PyStaticType_Dealloc` should not exist.
Open
@ericsnowcurrently is already working on this.
Since Feb 6, 2023.
interpreter-core
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
This the twin to https://github.com/python/cpython/issues/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 allocates int objects, which is problematic during interpreter cleanup, as the MemoryError cache may be cleared first.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.