Mercurial > cpython-lru_cache-weakref
diff Doc/lib/liboperator.tex @ 5818:3468ea8645ca legacy-trunk
AMK's megapatch:
* \bcode, \ecode added everywhere
* \label{module-foo} added everywhere
* A few \seealso sections added.
* Indentation fixed inside verbatim in lib*tex files
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 17 Jul 1997 16:34:52 +0000 |
| parents | bb4094ff7bdf |
| children | 1db41ca45c7f |
line wrap: on
line diff
--- a/Doc/lib/liboperator.tex Thu Jul 17 16:29:42 1997 +0000 +++ b/Doc/lib/liboperator.tex Thu Jul 17 16:34:52 1997 +0000 @@ -184,10 +184,10 @@ Example: Build a dictionary that maps the ordinals from 0 to 256 to their character equivalents. -\begin{verbatim} +\bcode\begin{verbatim} >>> import operator >>> d = {} >>> keys = range(256) >>> vals = map(chr, keys) >>> map(operator.setitem, [d]*len(keys), keys, vals) -\end{verbatim} +\end{verbatim}\ecode
