summaryrefslogtreecommitdiffstats
path: root/Doc/reference
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-10-21 10:24:20 (GMT)
committerGeorg Brandl <georg@python.org>2007-10-21 10:24:20 (GMT)
commit63fa16832617bfad010e3e70e7f10f713afd7593 (patch)
tree2f24ea291751a34d0b556833b5a1c3c353fb23a8 /Doc/reference
parentfa6179701c0dd7f2ecc21fe0ff6204a4e865094f (diff)
downloadcpython-63fa16832617bfad010e3e70e7f10f713afd7593.zip
cpython-63fa16832617bfad010e3e70e7f10f713afd7593.tar.gz
cpython-63fa16832617bfad010e3e70e7f10f713afd7593.tar.bz2
Unify "byte code" to "bytecode". Also sprinkle :term: markup for it.
Diffstat (limited to 'Doc/reference')
-rw-r--r--Doc/reference/datamodel.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/datamodel.rst b/Doc/reference/datamodel.rst
index de649bb..beecc7c 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.