[3.11] Docs: correctly link to code objects (GH-115214) (#115217)

(cherry picked from commit 769d444826)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
This commit is contained in:
Miss Islington (bot) 2024-02-09 15:18:01 +01:00 committed by GitHub
parent 20c6535693
commit ff72af8991
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View 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)