diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-08-27 23:59:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-27 23:59:35 (GMT) |
commit | 311fd96dae5156b46e0eca982c12dd6bad00adf5 (patch) | |
tree | 88da0ffebea74689524f0ece4211137186a5c903 /Doc/reference | |
parent | 32d48ede2fe90f27b5ed96c8e2bd3387a795e825 (diff) | |
download | cpython-311fd96dae5156b46e0eca982c12dd6bad00adf5.zip cpython-311fd96dae5156b46e0eca982c12dd6bad00adf5.tar.gz cpython-311fd96dae5156b46e0eca982c12dd6bad00adf5.tar.bz2 |
[3.12] Docs: Resolve Sphinx warnings in dis.rst (GH-108476) (#108546)
Docs: Resolve Sphinx warnings in dis.rst (GH-108476)
- Link to the code objects reference
- Suppress link to deliberately undocumented builtins.__build_class__
- Suppress links for example methods
(cherry picked from commit cb1184280b3fb369a07abb4153aa36829cf1df9b)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index 4c2d03e..362ac75 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 |