Title: PyType_FromSpec API fails to use metaclass of bases
Type: crash Stage:
Components: C API, Interpreter Core Versions: Python 3.11
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: petr.viktorin, seberg
Priority: normal Keywords:

Created on 2021-10-05 21:51 by seberg, last changed 2021-10-05 21:51 by seberg.

Pull Requests
URL Status Linked Edit
PR 28748 open seberg, 2021-10-05 21:51
Messages (1)
msg403273 - (view) Author: Sebastian Berg (seberg) * Date: 2021-10-05 21:51
The PyType_FromSpec fails to take care about MetaClasses.

Asks to create a new API to pass in the MetaClass.  This issue is only about "inheriting" the metaclass of the bases correctly.  Currently, Python fails to take into account that the bases may be MetaClass and not `PyType_Type` instances.
Date User Action Args
2021-10-05 21:51:26sebergcreate