Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libstdtypes.tex @ 15005:0cf5111bf09c legacy-trunk
Use \obindex{...} instead of \indexii{...}{type} in many places; this is
more consistent with other index entries in the documentation.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 04 Oct 2000 04:21:19 +0000 |
| parents | ac6df0494c58 |
| children | 12aec3381c94 |
line wrap: on
line diff
--- a/Doc/lib/libstdtypes.tex Tue Oct 03 23:07:13 2000 +0000 +++ b/Doc/lib/libstdtypes.tex Wed Oct 04 04:21:19 2000 +0000 @@ -166,12 +166,11 @@ point numbers are implemented using \ctype{double} in C. All bets on their precision are off unless you happen to know the machine you are working with. -\indexii{numeric}{types} -\indexii{integer}{types} -\indexii{integer}{type} -\indexiii{long}{integer}{type} -\indexii{floating point}{type} -\indexii{complex number}{type} +\obindex{numeric} +\obindex{integer} +\obindex{long integer} +\obindex{floating point} +\obindex{complex number} \indexii{C}{language} Complex numbers have a real and imaginary part, which are both @@ -332,13 +331,13 @@ objects are similar to buffers in that there is no specific syntax to create them, but they are created using the \function{xrange()} function.\bifuncindex{xrange} -\indexii{sequence}{types} -\indexii{string}{type} -\indexii{Unicode}{type} -\indexii{buffer}{type} -\indexii{tuple}{type} -\indexii{list}{type} -\indexii{xrange}{type} +\obindex{sequence} +\obindex{string} +\obindex{Unicode} +\obindex{buffer} +\obindex{tuple} +\obindex{list} +\obindex{xrange} Sequence types support the following operations. The \samp{in} and \samp{not in} operations have the same priorities as the comparison @@ -647,7 +646,7 @@ \subsubsection{XRange Type \label{typesseq-xrange}} -The xrange\indexii{xrange}{type} type is an immutable sequence which is +The xrange\obindex{xrange} type is an immutable sequence which is commonly used for looping. The advantage of the xrange type is that an xrange object will always take the same amount of memory, no matter the size of the range it represents. There are no consistent performance @@ -672,7 +671,7 @@ The following operations are defined on mutable sequence types (where \var{x} is an arbitrary object): \indexiii{mutable}{sequence}{types} -\indexii{list}{type} +\obindex{list} \begin{tableiii}{c|l|c}{code}{Operation}{Result}{Notes} \lineiii{\var{s}[\var{i}] = \var{x}} @@ -749,8 +748,8 @@ \subsection{Mapping Types \label{typesmapping}} -\indexii{mapping}{types} -\indexii{dictionary}{type} +\obindex{mapping} +\obindex{dictionary} A \dfn{mapping} object maps values of one type (the key type) to arbitrary objects. Mappings are mutable objects. There is currently
