diff options
author | Georg Brandl <georg@python.org> | 2007-10-21 10:24:20 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-10-21 10:24:20 +0000 |
commit | 7b4ce67ef1ee56e280521598e52d451dec0b29ab (patch) | |
tree | 4da3ded309a418cdb335807b3b3f815f6b6e0a64 /Doc/reference | |
parent | da7c0ac1afa266b8570cc731d93362c8dcf91be4 (diff) | |
download | cpython-7b4ce67ef1ee56e280521598e52d451dec0b29ab.tar.gz |
Unify "byte code" to "bytecode". Also sprinkle :term: markup for it.
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/datamodel.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst index de649bbd4e..beecc7c0b9 100644 --- a/Doc/reference/datamodel.rst +++ b/Doc/reference/datamodel.rst @@ -884,7 +884,7 @@ Internal types single: bytecode object: code - Code objects represent *byte-compiled* executable Python code, or *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 object contains an explicit reference to the function's globals (the module in which it was defined), while a code object contains no context; also the default @@ -905,7 +905,7 @@ Internal types used by the bytecode; :attr:`co_names` is a tuple containing the names used by the bytecode; :attr:`co_filename` is the filename from which the code was compiled; :attr:`co_firstlineno` is the first line number of the function; - :attr:`co_lnotab` is a string encoding the mapping from byte code offsets to + :attr:`co_lnotab` is a string encoding the mapping from bytecode offsets to line numbers (for details see the source code of the interpreter); :attr:`co_stacksize` is the required stack size (including local variables); :attr:`co_flags` is an integer encoding a number of flags for the interpreter. |