From 261860d8e19e1d7317fe0f7d4db12d3c93d04613 Mon Sep 17 00:00:00 2001 From: Max Bachmann Date: Thu, 26 Jan 2023 16:48:34 +0100 Subject: [PATCH] code.rst: add missing versionadded comment --- Doc/c-api/code.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index a6eb86f1a0b514..ae75d68901d7ba 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')``.