Skip to content

Support inheriting from slots classes with gc=False#635

Merged
jcrist merged 1 commit intomainfrom
support-nogc-inherit-slots-classes
Jan 21, 2024
Merged

Support inheriting from slots classes with gc=False#635
jcrist merged 1 commit intomainfrom
support-nogc-inherit-slots-classes

Conversation

@jcrist
Copy link
Copy Markdown
Owner

@jcrist jcrist commented Jan 21, 2024

Previously we prevented setting gc=False when inheriting from any non-Struct type. In reality this is safe to set when inheriting from any non-c-extension class lacking a __dict__.

Fixes #631.

Previously we prevented setting `gc=False` when inheriting from any
non-Struct type. In reality this is safe to set when inheriting from any
non-c-extension class lacking a `__dict__`.
@jcrist jcrist merged commit b08046b into main Jan 21, 2024
@jcrist jcrist deleted the support-nogc-inherit-slots-classes branch January 21, 2024 16:11
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.

Cannot set gc=False on Generic structs?

1 participant