diff options
author | Fred Drake <fdrake@acm.org> | 1999-02-12 22:05:33 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-02-12 22:05:33 (GMT) |
commit | 9474d8624202c2197b02ecc8678ce31b8d7bcf2e (patch) | |
tree | ce7c59584b7bbb8cfbf07fb58ec30c624592e41d | |
parent | 5761b766b2135cd626f039e7a524d4d3c2d2ab5b (diff) | |
download | cpython-9474d8624202c2197b02ecc8678ce31b8d7bcf2e.zip cpython-9474d8624202c2197b02ecc8678ce31b8d7bcf2e.tar.gz cpython-9474d8624202c2197b02ecc8678ce31b8d7bcf2e.tar.bz2 |
Make sure all HTML pages generated from this section have reasonable
names.
Markup nits.
-rw-r--r-- | Doc/lib/libstdtypes.tex | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/Doc/lib/libstdtypes.tex b/Doc/lib/libstdtypes.tex index ecc763e..c3a54f6 100644 --- a/Doc/lib/libstdtypes.tex +++ b/Doc/lib/libstdtypes.tex @@ -244,9 +244,7 @@ The result is always rounded towards minus infinity: 1/2 is 0, Conversion from floating point to (long or plain) integer may round or truncate as in \C{}; see functions \function{floor()} and \function{ceil()} in module \module{math} for well-defined conversions. -\withsubitem{(in module math)}{% - \ttindex{floor()}% - \ttindex{ceil()}} +\withsubitem{(in module math)}{\ttindex{floor()}\ttindex{ceil()}} \indexii{numeric}{conversions} \refbimodindex{math} \indexii{C@\C{}}{language} @@ -377,7 +375,8 @@ Notes: \end{description} -\subsubsection{More String Operations} + +\subsubsection{More String Operations \label{typesseq-strings}} String objects have one unique built-in operation: the \code{\%} operator (modulo) with a string left argument interprets this string @@ -433,7 +432,7 @@ Additional string operations are defined in standard module \refstmodindex{string} \refstmodindex{re} -\subsubsection{Mutable Sequence Types} +\subsubsection{Mutable Sequence Types \label{typesseq-mutable}} List objects support additional operations that allow in-place modification of the object. @@ -479,15 +478,15 @@ The following operations are defined on mutable sequence types (where \indexii{subscript}{assignment} \indexii{slice}{assignment} \stindex{del} -\withsubitem{(list method)}{% - \ttindex{append()}% - \ttindex{extend()}% - \ttindex{count()}% - \ttindex{index()}% - \ttindex{insert()}% - \ttindex{pop()}% - \ttindex{remove()}% - \ttindex{reverse()}% +\withsubitem{(list method)}{ + \ttindex{append()} + \ttindex{extend()} + \ttindex{count()} + \ttindex{index()} + \ttindex{insert()} + \ttindex{pop()} + \ttindex{remove()} + \ttindex{reverse()} \ttindex{sort()}} \noindent Notes: @@ -562,14 +561,14 @@ mapping, \var{k} is a key and \var{x} is an arbitrary object): \indexiii{operations on}{dictionary}{type} \stindex{del} \bifuncindex{len} -\withsubitem{(dictionary method)}{% - \ttindex{clear()}% - \ttindex{copy()}% - \ttindex{has_key()}% - \ttindex{items()}% - \ttindex{keys()}% - \ttindex{update()}% - \ttindex{values()}% +\withsubitem{(dictionary method)}{ + \ttindex{clear()} + \ttindex{copy()} + \ttindex{has_key()} + \ttindex{items()} + \ttindex{keys()} + \ttindex{update()} + \ttindex{values()} \ttindex{get()}} \noindent Notes: @@ -591,7 +590,7 @@ and \var{k} is not in the map, \code{None} is returned. The interpreter supports several other kinds of objects. Most of these support only one or two operations. -\subsubsection{Modules} +\subsubsection{Modules \label{typesmodules}} The only special operation on a module is attribute access: \code{\var{m}.\var{name}}, where \var{m} is a module and \var{name} @@ -612,12 +611,12 @@ defines \code{\var{m}.a} to be \code{1}, but you can't write Modules are written like this: \code{<module 'sys'>}. -\subsubsection{Classes and Class Instances} +\subsubsection{Classes and Class Instances \label{typesobjects}} \nodename{Classes and Instances} See Chapters 3 and 7 of the \emph{Python Reference Manual} for these. -\subsubsection{Functions} +\subsubsection{Functions \label{typesfunctions}} Function objects are created by function definitions. The only operation on a function object is to call it: @@ -636,7 +635,7 @@ same as \code{\var{m}.__dict__} where \var{m} is the module in which the function \var{f} was defined). -\subsubsection{Methods} +\subsubsection{Methods \label{typesmethods}} \obindex{method} Methods are functions that are called using the attribute notation. @@ -848,7 +847,7 @@ implemented in \C{} will have to provide a writable \member{softspace} attribute. \end{memberdesc} -\subsubsection{Internal Objects} +\subsubsection{Internal Objects \label{typesinternal}} See the \emph{Python Reference Manual} for this information. It describes code objects, stack frame objects, traceback objects, and |