From bfb2883ee0f66136045d8d8850c73751d9443b05 Mon Sep 17 00:00:00 2001 From: Tommy Beadle Date: Thu, 2 Jun 2016 19:26:51 -0400 Subject: [PATCH] [Issue 15476] Make "code object" its own entry in the doc index. --- Doc/c-api/code.rst | 8 ++++---- Doc/library/marshal.rst | 1 + Doc/library/stdtypes.rst | 6 ++++-- Doc/reference/datamodel.rst | 8 +++++--- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index 9c93563..f52d71a 100644 --- a/Doc/c-api/code.rst +++ b/Doc/c-api/code.rst @@ -2,15 +2,15 @@ .. _codeobjects: +.. index:: + object: code + single: code object + Code Objects ------------ .. sectionauthor:: Jeffrey Yasskin - -.. index:: - object: code - Code objects are a low-level detail of the CPython implementation. Each one represents a chunk of executable code that hasn't yet been bound into a function. diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst index af43944..ddc407c 100644 --- a/Doc/library/marshal.rst +++ b/Doc/library/marshal.rst @@ -16,6 +16,7 @@ rarely does). [#]_ .. index:: module: pickle module: shelve + single: code object object: code This is not a general "persistence" module. For general persistence and diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 33bd7a1..c37ea56 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4439,11 +4439,13 @@ See :ref:`types` for more information. .. _bltin-code-objects: +.. index:: + single: code object + object: code + Code Objects ------------ -.. index:: object: code - .. index:: builtin: compile single: __code__ (function object attribute) diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index c0b4930..dc4dcad 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -846,10 +846,12 @@ Internal types definitions may change with future versions of the interpreter, but they are mentioned here for completeness. + .. index:: + single: bytecode + single: code object + object: code + Code objects - .. index:: - single: bytecode - object: code 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 -- 2.8.2