Issue #15476: Merge index entries from 3.5

This commit is contained in:
Martin Panter 2016-06-09 23:36:40 +00:00
commit 5848ac2df0
4 changed files with 8 additions and 11 deletions

View File

@ -2,15 +2,13 @@
.. _codeobjects: .. _codeobjects:
.. index:: object; code, code object
Code Objects Code Objects
------------ ------------
.. sectionauthor:: Jeffrey Yasskin <jyasskin@gmail.com> .. sectionauthor:: Jeffrey Yasskin <jyasskin@gmail.com>
.. index::
object: code
Code objects are a low-level detail of the CPython implementation. Code objects are a low-level detail of the CPython implementation.
Each one represents a chunk of executable code that hasn't yet been Each one represents a chunk of executable code that hasn't yet been
bound into a function. bound into a function.

View File

@ -16,7 +16,6 @@ rarely does). [#]_
.. index:: .. index::
module: pickle module: pickle
module: shelve module: shelve
object: code
This is not a general "persistence" module. For general persistence and This is not a general "persistence" module. For general persistence and
transfer of Python objects through RPC calls, see the modules :mod:`pickle` 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 maliciously constructed data. Never unmarshal data received from an
untrusted or unauthenticated source. untrusted or unauthenticated source.
.. index:: object; code, code object
Not all Python object types are supported; in general, only objects whose value 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 is independent from a particular invocation of Python can be written and read by
this module. The following types are supported: booleans, integers, floating this module. The following types are supported: booleans, integers, floating

View File

@ -4437,13 +4437,13 @@ attribute, you need to explicitly set it on the underlying function object::
See :ref:`types` for more information. See :ref:`types` for more information.
.. index:: object; code, code object
.. _bltin-code-objects: .. _bltin-code-objects:
Code Objects Code Objects
------------ ------------
.. index:: object: code
.. index:: .. index::
builtin: compile builtin: compile
single: __code__ (function object attribute) single: __code__ (function object attribute)

View File

@ -846,11 +846,9 @@ Internal types
definitions may change with future versions of the interpreter, but they are definitions may change with future versions of the interpreter, but they are
mentioned here for completeness. mentioned here for completeness.
Code objects .. index:: bytecode, object; code, code object
.. index::
single: bytecode
object: code
Code objects
Code objects represent *byte-compiled* executable Python code, or :term:`bytecode`. 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 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 object contains an explicit reference to the function's globals (the module in