Mercurial > cpython-lru_cache-weakref
diff Doc/lib/liboperator.tex @ 7277:bf4e790bd61a legacy-trunk
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Fri, 13 Feb 1998 06:58:54 +0000 |
| parents | 38493b9376ea |
| children | 4ffcbcc5e8fe |
line wrap: on
line diff
--- a/Doc/lib/liboperator.tex Fri Feb 13 06:48:05 1998 +0000 +++ b/Doc/lib/liboperator.tex Fri Feb 13 06:58:54 1998 +0000 @@ -11,7 +11,7 @@ The \code{operator} module defines the following functions: -\renewcommand{\indexsubitem}{(in module operator)} +\setindexsubitem{(in module operator)} \begin{funcdesc}{add}{a, b} Return \var{a} \code{+} \var{b}, for \var{a} and \var{b} numbers. @@ -188,10 +188,10 @@ Example: Build a dictionary that maps the ordinals from \code{0} to \code{256} to their character equivalents. -\bcode\begin{verbatim} +\begin{verbatim} >>> import operator >>> d = {} >>> keys = range(256) >>> vals = map(chr, keys) >>> map(operator.setitem, [d]*len(keys), keys, vals) -\end{verbatim}\ecode +\end{verbatim}
