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.
Previously we were incorrectly accessing
tp_dict
in mixin classes when defining aStruct
class on Python 3.12+. This could result in a segfault if a user tried to create aStruct
class that also subclassed from an interpreter builtin type (likeException
). Now we error nicely instead.Fixes #727.