summaryrefslogtreecommitdiffstats
path: root/Doc/data/stable_abi.dat
diff options
context:
space:
mode:
authorGabriele N. Tornetta <P403n1x87@users.noreply.github.com>2021-12-10 01:52:05 (GMT)
committerGitHub <noreply@github.com>2021-12-10 01:52:05 (GMT)
commit50669083fe16a42cba90b5dd8c1a017751f69fd8 (patch)
treefc2a1c7425e20d7df0b4fa44b23fdf47b5bbf35c /Doc/data/stable_abi.dat
parentda3cf4304f6dd530533bbd2c0913b674cd803744 (diff)
downloadcpython-50669083fe16a42cba90b5dd8c1a017751f69fd8.zip
cpython-50669083fe16a42cba90b5dd8c1a017751f69fd8.tar.gz
cpython-50669083fe16a42cba90b5dd8c1a017751f69fd8.tar.bz2
bpo-43931: Export Python version as API data (GH-25577)
When Python is embedded in other applications, it is not easy to determine which version of Python is being used. This change exposes the Python version as part of the API data. Tools like Austin (https://github.com/P403n1x87/austin) can benefit from this data when targeting applications like uWSGI, as the Python version can then be inferred systematically by looking at the exported symbols rather than relying on unreliable pattern matching or other hacks (like remote code execution etc...). Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Doc/data/stable_abi.dat')
-rw-r--r--Doc/data/stable_abi.dat1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/data/stable_abi.dat b/Doc/data/stable_abi.dat
index 64a0a2a..02e54e5 100644
--- a/Doc/data/stable_abi.dat
+++ b/Doc/data/stable_abi.dat
@@ -830,6 +830,7 @@ type,Py_UCS4,3.2,
macro,Py_UNBLOCK_THREADS,3.2,
var,Py_UTF8Mode,3.8,
function,Py_VaBuildValue,3.2,
+var,Py_Version,3.11,
function,Py_XNewRef,3.10,
type,Py_intptr_t,3.2,
type,Py_ssize_t,3.2,