From: Max Bachmann Date: Sat, 4 Feb 2023 03:33:28 +0000 (+0100) Subject: Add missing `versionadded` directive for `PyCode_Addr2Location` (#101347) X-Git-Tag: v3.12.0a5~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f11a3d1ebe0c78f8c159c63a37022b9b96f720dd;p=thirdparty%2FPython%2Fcpython.git Add missing `versionadded` directive for `PyCode_Addr2Location` (#101347) --- diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index a6eb86f1a0b5..ae75d68901d7 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')``.