diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-23 21:20:45 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-23 21:20:45 (GMT) |
commit | 9c56409d3353b8cd4cfc19e0467bbe23fd34fc92 (patch) | |
tree | b4f9a6a7e8352479da1d36b9554c82011fa4839f /Include | |
parent | 110ee34e4179727d2c8bf56cb655a89c561c30e0 (diff) | |
download | cpython-9c56409d3353b8cd4cfc19e0467bbe23fd34fc92.zip cpython-9c56409d3353b8cd4cfc19e0467bbe23fd34fc92.tar.gz cpython-9c56409d3353b8cd4cfc19e0467bbe23fd34fc92.tar.bz2 |
Issue #15146: Add PyType_FromSpecWithBases. Patch by Robin Schreiber.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/object.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/object.h b/Include/object.h index 68001e7..709a9ff 100644 --- a/Include/object.h +++ b/Include/object.h @@ -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 */ |