]> granicus.if.org Git - python/commitdiff
[Issue 15476] Make "code object" its own entry in the index
authorTommy Beadle <tbeadle@gmail.com>
Thu, 2 Jun 2016 23:26:51 +0000 (19:26 -0400)
committerTommy Beadle <tbeadle@gmail.com>
Thu, 2 Jun 2016 23:26:51 +0000 (19:26 -0400)
Doc/c-api/code.rst
Doc/library/marshal.rst
Doc/library/stdtypes.rst
Doc/reference/datamodel.rst

index 9c9356338243649c9ef5850222696aa5403195cc..10d89f297c843fbd7d7c3a60b620723cf4215292 100644 (file)
@@ -2,15 +2,13 @@
 
 .. _codeobjects:
 
+.. index:: object; code, code object
+
 Code Objects
 ------------
 
 .. sectionauthor:: Jeffrey Yasskin <jyasskin@gmail.com>
 
-
-.. 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.
index d9fd68ada9794ebe3775849297de48ea76641b7a..8bf0e0322a6e9866fcff0b7bba155482fd75055c 100644 (file)
@@ -16,7 +16,6 @@ rarely does). [#]_
 .. index::
    module: pickle
    module: shelve
-   object: code
 
 This is not a general "persistence" module.  For general persistence and
 transfer of Python objects through RPC calls, see the modules :mod:`pickle` and
@@ -34,6 +33,8 @@ supports a substantially wider range of objects than marshal.
    maliciously constructed data.  Never unmarshal data received from an
    untrusted or unauthenticated source.
 
+.. index:: object; code, code object
+
 Not all Python object types are supported; in general, only objects whose value
 is independent from a particular invocation of Python can be written and read by
 this module.  The following types are supported: booleans, integers, floating
index 80f47793be753468d8b98ec0f030b6da7a8fe890..e8a488eb1bfa0c516642b1c97103e05577058d50 100644 (file)
@@ -4436,13 +4436,13 @@ attribute, you need to explicitly set it on the underlying function object::
 See :ref:`types` for more information.
 
 
+.. index:: object; code, code object
+
 .. _bltin-code-objects:
 
 Code Objects
 ------------
 
-.. index:: object: code
-
 .. index::
    builtin: compile
    single: __code__ (function object attribute)
index 493acaaa494deba92eecd9f2ce4e829caaef63f5..71d695f96f4de30bed3604fe1bed6839e77951fa 100644 (file)
@@ -846,11 +846,9 @@ Internal types
    definitions may change with future versions of the interpreter, but they are
    mentioned here for completeness.
 
-   Code objects
-      .. index::
-         single: bytecode
-         object: code
+   .. index:: bytecode, object; code, code object
 
+   Code objects
       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