summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2023-08-25 11:28:47 (GMT)
committerGitHub <noreply@github.com>2023-08-25 11:28:47 (GMT)
commitcb1184280b3fb369a07abb4153aa36829cf1df9b (patch)
tree100885e8acc2bbd7e5c6ce1703a88e503ff17c11 /Doc/reference
parent2b7bff0655a4caf51cd1a9e5bf85b3b96dd031c9 (diff)
downloadcpython-cb1184280b3fb369a07abb4153aa36829cf1df9b.zip
cpython-cb1184280b3fb369a07abb4153aa36829cf1df9b.tar.gz
cpython-cb1184280b3fb369a07abb4153aa36829cf1df9b.tar.bz2
Docs: Resolve Sphinx warnings in dis.rst (#108476)
- Link to the code objects reference - Suppress link to deliberately undocumented builtins.__build_class__ - Suppress links for example methods
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index 832a915..cc81f73 100644
--- a/Doc/reference/datamodel.rst
+++ b/Doc/reference/datamodel.rst
@@ -1039,12 +1039,14 @@ A few types used internally by the interpreter are exposed to the user. Their
definitions may change with future versions of the interpreter, but they are
mentioned here for completeness.
-.. index:: bytecode, object; code, code object
+.. _code-objects:
Code objects
^^^^^^^^^^^^
+.. index:: bytecode, object; code, code object
+
Code objects represent *byte-compiled* executable Python code, or :term:`bytecode`.
The difference between a code object and a function object is that the function
object contains an explicit reference to the function's globals (the module in