This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: Add the Python version to the API data.
Type: enhancement Stage: resolved
Components: C API Versions: Python 3.10
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: Gabriele Tornetta, miss-islington
Priority: normal Keywords: patch

Created on 2021-04-24 14:37 by Gabriele Tornetta, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 25577 merged Gabriele Tornetta, 2021-04-24 14:40
Messages (2)
msg391779 - (view) Author: Gabriele N Tornetta (Gabriele Tornetta) * Date: 2021-04-24 14:37
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 ( 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...).
msg408169 - (view) Author: miss-islington (miss-islington) Date: 2021-12-10 01:52
New changeset 50669083fe16a42cba90b5dd8c1a017751f69fd8 by Gabriele N. Tornetta in branch 'main':
bpo-43931: Export Python version as API data (GH-25577)
Date User Action Args
2022-04-11 14:59:44adminsetgithub: 88097
2021-12-10 02:42:16pablogsalsetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-12-10 01:52:19miss-islingtonsetnosy: + miss-islington
messages: + msg408169
2021-04-24 14:40:42Gabriele Tornettasetkeywords: + patch
stage: patch review
pull_requests: + pull_request24297
2021-04-24 14:37:54Gabriele Tornettacreate