]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Docs: correctly link to code objects (GH-115214) (#115217)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 Feb 2024 14:18:01 +0000 (15:18 +0100)
committerGitHub <noreply@github.com>
Fri, 9 Feb 2024 14:18:01 +0000 (14:18 +0000)
(cherry picked from commit 769d4448260aaec687d9306950225316f9faefce)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Doc/c-api/code.rst

index 33682d30dff337fc2579109bc69eca291f62e5c6..3f30710025a3b340d544453c2c70b46bd02e47b7 100644 (file)
@@ -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 <code-objects>`.
 
 
 .. 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 <code-objects>`.
+   This function always succeeds.
 
 .. c:function:: int PyCode_GetNumFree(PyCodeObject *co)