Skip to content

[Python] Fix exceptions from __del__ during interpreter shutdown#8355

Open
bdash wants to merge 1 commit into
devfrom
test_py_super
Open

[Python] Fix exceptions from __del__ during interpreter shutdown#8355
bdash wants to merge 1 commit into
devfrom
test_py_super

Conversation

@bdash

@bdash bdash commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

StructureType, EnumerationType, and NamedTypeReferenceType called super(Class, self) in __del__. The interpreter nulls that module-global class name during teardown, so finalizers running at shutdown raised a TypeError. Switch to zero-arg super() here and across the rest of the Python API.

`StructureType`, `EnumerationType`, and `NamedTypeReferenceType` called
`super(Class, self)` in `__del__`. The interpreter nulls that module-global
class name during teardown, so finalizers running at shutdown raised a
`TypeError`. Switch to zero-arg `super()` here and across the rest of
the Python API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant