@@ -14,7 +14,9 @@ \section{Built-in Types}
1414implicitly used when an object is written by the \code {print} statement.
1515\stindex {print}
1616
17+
1718\subsection {Truth Value Testing }
19+ \label {truth }
1820
1921Any object can be tested for truth value, for use in an \code {if} or
2022\code {while} condition or as operand of the Boolean operations below.
@@ -53,7 +55,9 @@ \subsection{Truth Value Testing}
5355\samp {or}\opindex {or} and \samp {and}\opindex {and} always return one of
5456their operands.)
5557
58+
5659\subsection {Boolean Operations }
60+ \label {boolean }
5761
5862These are the Boolean operations, ordered by ascending priority:
5963\indexii {Boolean}{operations}
@@ -84,7 +88,9 @@ \subsection{Boolean Operations}
8488
8589\end {description }
8690
91+
8792\subsection {Comparisons }
93+ \label {comparisons }
8894
8995Comparison operations are supported by all objects. They all have the
9096same priority (which is higher than that of the Boolean operations).
@@ -143,7 +149,9 @@ \subsection{Comparisons}
143149\opindex {in}
144150\opindex {not in}
145151
152+
146153\subsection {Numeric Types }
154+ \label {typesnumeric }
147155
148156There are four numeric types: \dfn {plain integers}, \dfn {long integers},
149157\dfn {floating point numbers}, and \dfn {complex numbers}.
@@ -297,7 +305,9 @@ \subsubsection{Bit-string Operations on Integer Types}
297305division by \code {pow(2, \var {n})} without overflow check.
298306\end {description }
299307
308+
300309\subsection {Sequence Types }
310+ \label {typesseq }
301311
302312There are three sequence types: strings, lists and tuples.
303313
@@ -501,7 +511,9 @@ \subsubsection{Mutable Sequence Types}
501511
502512\end {description }
503513
514+
504515\subsection {Mapping Types }
516+ \label {typesmapping }
505517
506518A \dfn {mapping} object maps values of one type (the key type) to
507519arbitrary objects. Mappings are mutable objects. There is currently
@@ -561,7 +573,9 @@ \subsection{Mapping Types}
561573and \var {k} is not in the map, \code {None} is returned.
562574\end {description }
563575
576+
564577\subsection {Other Built-in Types }
578+ \label {typesother }
565579
566580The interpreter supports several other kinds of objects.
567581Most of these support only one or two operations.
@@ -816,7 +830,9 @@ \subsubsection{Internal Objects}
816830describes code objects, stack frame objects, traceback objects, and
817831slice objects.
818832
833+
819834\subsection {Special Attributes }
835+ \label {specialattrs }
820836
821837The implementation adds a few special read-only attributes to several
822838object types, where they are relevant:
0 commit comments