From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 9 Feb 2024 14:17:49 +0000 (+0100) Subject: [3.12] Docs: correctly link to code objects (GH-115214) (#115216) X-Git-Tag: v3.12.3~315 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=370cbbbfeb2629dafe154387871d2eb9e3d5921a;p=thirdparty%2FPython%2Fcpython.git [3.12] Docs: correctly link to code objects (GH-115214) (#115216) (cherry picked from commit 769d4448260aaec687d9306950225316f9faefce) Co-authored-by: Erlend E. Aasland --- diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index 5082b0cb6ad3..11c12e685fca 100644 --- a/Doc/c-api/code.rst +++ b/Doc/c-api/code.rst @@ -22,12 +22,13 @@ bound into a function. .. c:var:: PyTypeObject PyCode_Type This is an instance of :c:type:`PyTypeObject` representing the Python - :class:`code` type. + :ref:`code object `. .. c:function:: int PyCode_Check(PyObject *co) - Return true if *co* is a :class:`code` object. This function always succeeds. + Return true if *co* is a :ref:`code object `. + This function always succeeds. .. c:function:: int PyCode_GetNumFree(PyCodeObject *co)