diff options
author | Petr Viktorin <encukou@gmail.com> | 2020-02-06 14:48:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 14:48:27 (GMT) |
commit | 3f563cea567fbfed9db539ecbbacfee2d86f7735 (patch) | |
tree | d7817605e6d152770f680bcffb03fe04bef50c7c /Include/object.h | |
parent | d2f96672642cc51b92f61b951ca1b11d615c12d1 (diff) | |
download | cpython-3f563cea567fbfed9db539ecbbacfee2d86f7735.zip cpython-3f563cea567fbfed9db539ecbbacfee2d86f7735.tar.gz cpython-3f563cea567fbfed9db539ecbbacfee2d86f7735.tar.bz2 |
bpo-39245: Make Vectorcall C API public (GH-17893)
* Add backcompat defines and move non-limited API declaration to cpython/
This partially reverts commit 2ff58a24e8a1c7e290d025d69ebaea0bbead3b8c
which added PyObject_CallNoArgs to the 3.9+ stable ABI. This should not
be done; there are enough other call APIs in the stable ABI to choose from.
* Adjust documentation
Mark all newly public functions as added in 3.9.
Add a note about the 3.8 provisional names.
Add notes on public API.
* Put PyObject_CallNoArgs back in the limited API
* Rename PyObject_FastCallDict to PyObject_VectorcallDict
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Include/object.h b/Include/object.h index e7e9c1b..38794a0 100644 --- a/Include/object.h +++ b/Include/object.h @@ -279,7 +279,9 @@ given type object has a specified feature. /* Set if the type implements the vectorcall protocol (PEP 590) */ #ifndef Py_LIMITED_API -#define _Py_TPFLAGS_HAVE_VECTORCALL (1UL << 11) +#define Py_TPFLAGS_HAVE_VECTORCALL (1UL << 11) +// Backwards compatibility alias for API that was provisional in Python 3.8 +#define _Py_TPFLAGS_HAVE_VECTORCALL Py_TPFLAGS_HAVE_VECTORCALL #endif /* Set if the type is 'ready' -- fully initialized */ |