[issue45383] PyType_FromSpec API fails to use metaclass of bases

Sebastian Berg report at bugs.python.org
Fri Dec 17 12:19:49 EST 2021


Sebastian Berg <sebastian at sipsolutions.net> added the comment:

Btw. huge thanks for looking into this!  Let me know if I can try to help out (I can make due with static metatypes, but my story seems much clearer if I could say: Well with Py 3.11 you can, and probably should, do it dynamically.).  I had lost a lot of time chasing "metaclass should just work" followed by "but I can't get it right without bad hacks".

And now the solution seems fairly clear, which is amazing :)!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45383>
_______________________________________


More information about the Python-bugs-list mailing list