Skip to content

Conversation

@jcrist
Copy link
Owner

@jcrist jcrist commented Oct 14, 2024

Previously we were incorrectly accessing tp_dict in mixin classes when defining a Struct class on Python 3.12+. This could result in a segfault if a user tried to create a Struct class that also subclassed from an interpreter builtin type (like Exception). Now we error nicely instead.

Fixes #727.

Previously we were incorrectly accessing `tp_dict` in mixin classes when
defining a `Struct` class on Python 3.12+. This could result in a
segfault if a user tried to create a `Struct` class that also subclassed
from an interpreter builtin type (like `Exception`). Now we error nicely
instead.
@jcrist jcrist merged commit f4a0c63 into main Oct 14, 2024
7 checks passed
@jcrist jcrist deleted the no-builtin-mixins branch October 14, 2024 16:42
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.

Encoding exceptions - segfault

1 participant