From fe1130371fe9756b18367c731b58f38562b3b952 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 | 6 ++---- Doc/library/marshal.rst | 2 +- Doc/library/stdtypes.rst | 4 ++-- Doc/reference/datamodel.rst | 5 ++--- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index 9c93563..5793ff8 100644 --- a/Doc/c-api/code.rst +++ b/Doc/c-api/code.rst @@ -2,15 +2,13 @@ .. _codeobjects: +.. index:: 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..39fa652 100644 --- a/Doc/library/marshal.rst +++ b/Doc/library/marshal.rst @@ -16,7 +16,7 @@ rarely does). [#]_ .. index:: module: pickle module: shelve - object: code + single: code object This is not a general "persistence" module. For general persistence and transfer of Python objects through RPC calls, see the modules :mod:`pickle` and diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 33bd7a1..b39770f 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -4439,11 +4439,11 @@ See :ref:`types` for more information. .. _bltin-code-objects: +.. index:: code object + 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..4960344 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -846,10 +846,9 @@ Internal types definitions may change with future versions of the interpreter, but they are mentioned here for completeness. + .. index:: bytecode, code object + 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