mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #15146: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.
This commit is contained in:
parent
110ee34e41
commit
9c56409d33
6 changed files with 96 additions and 4 deletions
|
@ -433,6 +433,9 @@ typedef struct{
|
|||
} PyType_Spec;
|
||||
|
||||
PyAPI_FUNC(PyObject*) PyType_FromSpec(PyType_Spec*);
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000
|
||||
PyAPI_FUNC(PyObject*) PyType_FromSpecWithBases(PyType_Spec*, PyObject*);
|
||||
#endif
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
/* The *real* layout of a type object when allocated on the heap */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue