Commit 4c3f3e25 authored by Fred Drake's avatar Fred Drake

Added \label{} for logical addressing.

parent 24deba1f
...@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is ...@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is
implicitly used when an object is written by the \code{print} statement. implicitly used when an object is written by the \code{print} statement.
\stindex{print} \stindex{print}
\subsection{Truth Value Testing} \subsection{Truth Value Testing}
\label{truth}
Any object can be tested for truth value, for use in an \code{if} or Any object can be tested for truth value, for use in an \code{if} or
\code{while} condition or as operand of the Boolean operations below. \code{while} condition or as operand of the Boolean operations below.
...@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations ...@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations
\samp{or}\opindex{or} and \samp{and}\opindex{and} always return one of \samp{or}\opindex{or} and \samp{and}\opindex{and} always return one of
their operands.) their operands.)
\subsection{Boolean Operations} \subsection{Boolean Operations}
\label{boolean}
These are the Boolean operations, ordered by ascending priority: These are the Boolean operations, ordered by ascending priority:
\indexii{Boolean}{operations} \indexii{Boolean}{operations}
...@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome. ...@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome.
\end{description} \end{description}
\subsection{Comparisons} \subsection{Comparisons}
\label{comparisons}
Comparison operations are supported by all objects. They all have the Comparison operations are supported by all objects. They all have the
same priority (which is higher than that of the Boolean operations). same priority (which is higher than that of the Boolean operations).
...@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and ...@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and
\opindex{in} \opindex{in}
\opindex{not in} \opindex{not in}
\subsection{Numeric Types} \subsection{Numeric Types}
\label{typesnumeric}
There are four numeric types: \dfn{plain integers}, \dfn{long integers}, There are four numeric types: \dfn{plain integers}, \dfn{long integers},
\dfn{floating point numbers}, and \dfn{complex numbers}. \dfn{floating point numbers}, and \dfn{complex numbers}.
...@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check. ...@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check.
division by \code{pow(2, \var{n})} without overflow check. division by \code{pow(2, \var{n})} without overflow check.
\end{description} \end{description}
\subsection{Sequence Types} \subsection{Sequence Types}
\label{typesseq}
There are three sequence types: strings, lists and tuples. There are three sequence types: strings, lists and tuples.
...@@ -501,7 +511,9 @@ this side effect. ...@@ -501,7 +511,9 @@ this side effect.
\end{description} \end{description}
\subsection{Mapping Types} \subsection{Mapping Types}
\label{typesmapping}
A \dfn{mapping} object maps values of one type (the key type) to A \dfn{mapping} object maps values of one type (the key type) to
arbitrary objects. Mappings are mutable objects. There is currently arbitrary objects. Mappings are mutable objects. There is currently
...@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided ...@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided
and \var{k} is not in the map, \code{None} is returned. and \var{k} is not in the map, \code{None} is returned.
\end{description} \end{description}
\subsection{Other Built-in Types} \subsection{Other Built-in Types}
\label{typesother}
The interpreter supports several other kinds of objects. The interpreter supports several other kinds of objects.
Most of these support only one or two operations. Most of these support only one or two operations.
...@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It ...@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It
describes code objects, stack frame objects, traceback objects, and describes code objects, stack frame objects, traceback objects, and
slice objects. slice objects.
\subsection{Special Attributes} \subsection{Special Attributes}
\label{specialattrs}
The implementation adds a few special read-only attributes to several The implementation adds a few special read-only attributes to several
object types, where they are relevant: object types, where they are relevant:
......
...@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is ...@@ -14,7 +14,9 @@ a string (with the \code{`{\rm \ldots}`} notation). The latter conversion is
implicitly used when an object is written by the \code{print} statement. implicitly used when an object is written by the \code{print} statement.
\stindex{print} \stindex{print}
\subsection{Truth Value Testing} \subsection{Truth Value Testing}
\label{truth}
Any object can be tested for truth value, for use in an \code{if} or Any object can be tested for truth value, for use in an \code{if} or
\code{while} condition or as operand of the Boolean operations below. \code{while} condition or as operand of the Boolean operations below.
...@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations ...@@ -53,7 +55,9 @@ stated. (Important exception: the Boolean operations
\samp{or}\opindex{or} and \samp{and}\opindex{and} always return one of \samp{or}\opindex{or} and \samp{and}\opindex{and} always return one of
their operands.) their operands.)
\subsection{Boolean Operations} \subsection{Boolean Operations}
\label{boolean}
These are the Boolean operations, ordered by ascending priority: These are the Boolean operations, ordered by ascending priority:
\indexii{Boolean}{operations} \indexii{Boolean}{operations}
...@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome. ...@@ -84,7 +88,9 @@ These only evaluate their second argument if needed for their outcome.
\end{description} \end{description}
\subsection{Comparisons} \subsection{Comparisons}
\label{comparisons}
Comparison operations are supported by all objects. They all have the Comparison operations are supported by all objects. They all have the
same priority (which is higher than that of the Boolean operations). same priority (which is higher than that of the Boolean operations).
...@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and ...@@ -143,7 +149,9 @@ Two more operations with the same syntactic priority, \code{in} and
\opindex{in} \opindex{in}
\opindex{not in} \opindex{not in}
\subsection{Numeric Types} \subsection{Numeric Types}
\label{typesnumeric}
There are four numeric types: \dfn{plain integers}, \dfn{long integers}, There are four numeric types: \dfn{plain integers}, \dfn{long integers},
\dfn{floating point numbers}, and \dfn{complex numbers}. \dfn{floating point numbers}, and \dfn{complex numbers}.
...@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check. ...@@ -297,7 +305,9 @@ multiplication by \code{pow(2, \var{n})} without overflow check.
division by \code{pow(2, \var{n})} without overflow check. division by \code{pow(2, \var{n})} without overflow check.
\end{description} \end{description}
\subsection{Sequence Types} \subsection{Sequence Types}
\label{typesseq}
There are three sequence types: strings, lists and tuples. There are three sequence types: strings, lists and tuples.
...@@ -501,7 +511,9 @@ this side effect. ...@@ -501,7 +511,9 @@ this side effect.
\end{description} \end{description}
\subsection{Mapping Types} \subsection{Mapping Types}
\label{typesmapping}
A \dfn{mapping} object maps values of one type (the key type) to A \dfn{mapping} object maps values of one type (the key type) to
arbitrary objects. Mappings are mutable objects. There is currently arbitrary objects. Mappings are mutable objects. There is currently
...@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided ...@@ -561,7 +573,9 @@ instead it returns \var{f}. \var{f} is optional, when not provided
and \var{k} is not in the map, \code{None} is returned. and \var{k} is not in the map, \code{None} is returned.
\end{description} \end{description}
\subsection{Other Built-in Types} \subsection{Other Built-in Types}
\label{typesother}
The interpreter supports several other kinds of objects. The interpreter supports several other kinds of objects.
Most of these support only one or two operations. Most of these support only one or two operations.
...@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It ...@@ -816,7 +830,9 @@ See the \emph{Python Reference Manual} for this information. It
describes code objects, stack frame objects, traceback objects, and describes code objects, stack frame objects, traceback objects, and
slice objects. slice objects.
\subsection{Special Attributes} \subsection{Special Attributes}
\label{specialattrs}
The implementation adds a few special read-only attributes to several The implementation adds a few special read-only attributes to several
object types, where they are relevant: object types, where they are relevant:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment