[Python-checkins] Add missing `versionadded` directive for `PyCode_Addr2Location` (GH-101347)

miss-islington webhook-mailer at python.org
Fri Feb 3 22:40:57 EST 2023


https://github.com/python/cpython/commit/4c763463fca5eed1a99c73e7a43008420292d4f7
commit: 4c763463fca5eed1a99c73e7a43008420292d4f7
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2023-02-03T19:40:51-08:00
summary:

Add missing `versionadded` directive for `PyCode_Addr2Location` (GH-101347)

(cherry picked from commit f11a3d1ebe0c78f8c159c63a37022b9b96f720dd)

Co-authored-by: Max Bachmann <oss at maxbachmann.de>

files:
M Doc/c-api/code.rst

diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst
index 9054e7ee3181..ee39f2aea85b 100644
--- a/Doc/c-api/code.rst
+++ b/Doc/c-api/code.rst
@@ -77,6 +77,8 @@ bound into a function.
 
    Returns ``1`` if the function succeeds and 0 otherwise.
 
+   .. versionadded:: 3.11
+
 .. c:function:: PyObject* PyCode_GetCode(PyCodeObject *co)
 
    Equivalent to the Python code ``getattr(co, 'co_code')``.



More information about the Python-checkins mailing list