]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add missing `versionadded` directive for `PyCode_Addr2Location` (GH-101347)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 4 Feb 2023 03:40:51 +0000 (19:40 -0800)
committerGitHub <noreply@github.com>
Sat, 4 Feb 2023 03:40:51 +0000 (19:40 -0800)
(cherry picked from commit f11a3d1ebe0c78f8c159c63a37022b9b96f720dd)

Co-authored-by: Max Bachmann <oss@maxbachmann.de>
Doc/c-api/code.rst

index 9054e7ee3181a52614dc42fb25f7160798d18f0b..ee39f2aea85b0930c10c1f52d9815d33b12f7fd2 100644 (file)
@@ -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')``.