https://github.com/python/cpython/commit/6c6f04da63026d5948699b3603c90589c8dd5cd9
commit: 6c6f04da63026d5948699b3603c90589c8dd5cd9
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: encukou <[email protected]>
date: 2026-06-04T11:49:37+02:00
summary:

[3.14] Correct Stable ABI documentation for METH_FASTCALL (GH-149593) 
(GH-150852)

The current documentation says:

>
> METH_FASTCALL
>    Part of the Stable ABI since version 3.7.
>
> [...]
>
>   Added in version 3.7.
>
>    Changed in version 3.10: METH_FASTCALL is now part of the stable ABI.

so is contradictory about when it was added to the Stable ABI.  Looking at the 
header it seems like 3.10 is right.
(cherry picked from commit 58beae7319c58d850184d621d6635de23f71a229)

Co-authored-by: da-woods <[email protected]>

files:
M Doc/data/stable_abi.dat
M Misc/stable_abi.toml

diff --git a/Doc/data/stable_abi.dat b/Doc/data/stable_abi.dat
index b69799f5a4235a9..5fd69346ffb5e03 100644
--- a/Doc/data/stable_abi.dat
+++ b/Doc/data/stable_abi.dat
@@ -1,7 +1,7 @@
 role,name,added,ifdef_note,struct_abi_kind
 macro,METH_CLASS,3.2,,
 macro,METH_COEXIST,3.2,,
-macro,METH_FASTCALL,3.7,,
+macro,METH_FASTCALL,3.10,,
 macro,METH_METHOD,3.7,,
 macro,METH_NOARGS,3.2,,
 macro,METH_O,3.2,,
diff --git a/Misc/stable_abi.toml b/Misc/stable_abi.toml
index cc58ffc176af590..b91c078b60a5d1a 100644
--- a/Misc/stable_abi.toml
+++ b/Misc/stable_abi.toml
@@ -1787,7 +1787,6 @@
 [const.METH_COEXIST]
     added = '3.2'
 # METH_STACKLESS is undocumented
-# METH_FASTCALL is not part of limited API.
 
 # The following are defined in private headers, but historically
 # they were exported as part of the stable ABI.
@@ -2121,8 +2120,6 @@
 
 # New method flags in 3.7 (PEP 590):
 
-[const.METH_FASTCALL]
-    added = '3.7'
 [const.METH_METHOD]
     added = '3.7'
 
@@ -2272,6 +2269,10 @@
 [data.PyStructSequence_UnnamedField]
     added = '3.11'
 
+# Added in 3.7 but in the Stable ABI from 3.10
+[const.METH_FASTCALL]
+    added = '3.10'
+
 # Add stable Py_buffer API in Python 3.11 (https://bugs.python.org/issue45459)
 [struct.Py_buffer]
     added = '3.11'

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to