Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5848ac2

Browse files
committed
Issue #15476: Merge index entries from 3.5
2 parents b08388d + e9b8403 commit 5848ac2

4 files changed

Lines changed: 8 additions & 11 deletions

File tree

Doc/c-api/code.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
.. _codeobjects:
44

5+
.. index:: object; code, code object
6+
57
Code Objects
68
------------
79

810
.. sectionauthor:: Jeffrey Yasskin <[email protected]>
911

10-
11-
.. index::
12-
object: code
13-
1412
Code objects are a low-level detail of the CPython implementation.
1513
Each one represents a chunk of executable code that hasn't yet been
1614
bound into a function.

Doc/library/marshal.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ rarely does). [#]_
1616
.. index::
1717
module: pickle
1818
module: shelve
19-
object: code
2019

2120
This is not a general "persistence" module. For general persistence and
2221
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.
3433
maliciously constructed data. Never unmarshal data received from an
3534
untrusted or unauthenticated source.
3635

36+
.. index:: object; code, code object
37+
3738
Not all Python object types are supported; in general, only objects whose value
3839
is independent from a particular invocation of Python can be written and read by
3940
this module. The following types are supported: booleans, integers, floating

Doc/library/stdtypes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4437,13 +4437,13 @@ attribute, you need to explicitly set it on the underlying function object::
44374437
See :ref:`types` for more information.
44384438

44394439

4440+
.. index:: object; code, code object
4441+
44404442
.. _bltin-code-objects:
44414443

44424444
Code Objects
44434445
------------
44444446

4445-
.. index:: object: code
4446-
44474447
.. index::
44484448
builtin: compile
44494449
single: __code__ (function object attribute)

Doc/reference/datamodel.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -846,11 +846,9 @@ Internal types
846846
definitions may change with future versions of the interpreter, but they are
847847
mentioned here for completeness.
848848

849-
Code objects
850-
.. index::
851-
single: bytecode
852-
object: code
849+
.. index:: bytecode, object; code, code object
853850

851+
Code objects
854852
Code objects represent *byte-compiled* executable Python code, or :term:`bytecode`.
855853
The difference between a code object and a function object is that the function
856854
object contains an explicit reference to the function's globals (the module in

0 commit comments

Comments
 (0)