summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-02-04 03:40:51 (GMT)
committerGitHub <noreply@github.com>2023-02-04 03:40:51 (GMT)
commit4c763463fca5eed1a99c73e7a43008420292d4f7 (patch)
tree8b3ea252b2c132e80faa0da3545bcc4b6285c724 /Doc
parent898de13f914a7db93390bfd6277155b9a7a2c565 (diff)
downloadcpython-4c763463fca5eed1a99c73e7a43008420292d4f7.zip
cpython-4c763463fca5eed1a99c73e7a43008420292d4f7.tar.gz
cpython-4c763463fca5eed1a99c73e7a43008420292d4f7.tar.bz2
Add missing `versionadded` directive for `PyCode_Addr2Location` (GH-101347)
(cherry picked from commit f11a3d1ebe0c78f8c159c63a37022b9b96f720dd) Co-authored-by: Max Bachmann <oss@maxbachmann.de>
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/code.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst
index 9054e7e..ee39f2a 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')``.