summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2024-02-09 14:11:36 (GMT)
committerGitHub <noreply@github.com>2024-02-09 14:11:36 (GMT)
commit769d4448260aaec687d9306950225316f9faefce (patch)
tree18b313078b3064d4edb6e525d7fceca18b65d12f /Doc
parent846fd721d518dda88a7d427ec3d2c03c45d9fa90 (diff)
downloadcpython-769d4448260aaec687d9306950225316f9faefce.zip
cpython-769d4448260aaec687d9306950225316f9faefce.tar.gz
cpython-769d4448260aaec687d9306950225316f9faefce.tar.bz2
Docs: correctly link to code objects (#115214)
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/code.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst
index 5082b0c..11c12e6 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 <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)