]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Fix PyVectorcall_Function doc versionadded (GH-107140) (#107174)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 24 Jul 2023 13:06:46 +0000 (06:06 -0700)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 13:06:46 +0000 (13:06 +0000)
Fix PyVectorcall_Function doc versionadded (GH-107140)

The documentation implies that PyVectorcall_Function() was available in Python 3.8.
This is half-true - it was available under a different name. I think it's clearer to set
the "version added" to 3.9.
(cherry picked from commit 0a9b339363a59be1249189c767ed6f46fd71e1c7)

Co-authored-by: da-woods <dw-git@d-woods.co.uk>
Doc/c-api/call.rst

index a574965bb126059cd500a2ba0e8472cd19774e8c..838af604dca020baf4613a20854a917099087e1e 100644 (file)
@@ -156,7 +156,7 @@ Vectorcall Support API
    This is mostly useful to check whether or not *op* supports vectorcall,
    which can be done by checking ``PyVectorcall_Function(op) != NULL``.
 
-   .. versionadded:: 3.8
+   .. versionadded:: 3.9
 
 .. c:function:: PyObject* PyVectorcall_Call(PyObject *callable, PyObject *tuple, PyObject *dict)