I’m working on updating a binary extension for 3.12 and ran in to the new restrictions of not being allowed to use a metaclass with a custom tp_new in a C type created with
I have some types that are various collections (e.g. Mapping, Sequence, etc.) and I was using the
abc.collections abstract classes as a base class so that I didn’t have to implement all of the mixin methods they provide in C. However, now this code is failing in Python 3.12 due to the new restriction since
abc.ABCMeta has a custom
Is there a different way I can get the mixin methods without using the abstract base classes?