Mercurial > cpython-lru_cache-weakref
diff Doc/lib/libfuncs.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 | 5bb884527446 |
| children | 6ad234ad8de5 |
line wrap: on
line diff
--- a/Doc/lib/libfuncs.tex Fri Feb 13 06:48:05 1998 +0000 +++ b/Doc/lib/libfuncs.tex Fri Feb 13 06:58:54 1998 +0000 @@ -5,7 +5,7 @@ are always available. They are listed here in alphabetical order. -\renewcommand{\indexsubitem}{(built-in function)} +\setindexsubitem{(built-in function)} \begin{funcdesc}{__import__}{name\optional{, globals\optional{, locals\optional{, fromlist}}}} This function is invoked by the \code{import} statement. It @@ -135,14 +135,14 @@ and for class instances, methods are not included. The resulting list is sorted alphabetically. For example: -\bcode\begin{verbatim} +\begin{verbatim} >>> import sys >>> dir() ['sys'] >>> dir(sys) ['argv', 'exit', 'modules', 'path', 'stderr', 'stdin', 'stdout'] >>> -\end{verbatim}\ecode +\end{verbatim} \end{funcdesc} \begin{funcdesc}{divmod}{a\, b} @@ -166,12 +166,12 @@ called. The return value is the result of the evaluated expression. Syntax errors are reported as exceptions. Example: -\bcode\begin{verbatim} +\begin{verbatim} >>> x = 1 >>> print eval('x+1') 2 >>> -\end{verbatim}\ecode +\end{verbatim} % This function can also be used to execute arbitrary code objects (e.g.\ created by \code{compile()}). In this case pass a code @@ -448,7 +448,7 @@ greater than \var{stop}. \var{step} must not be zero (or else an exception is raised). Example: -\bcode\begin{verbatim} +\begin{verbatim} >>> range(10) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> range(1, 11) @@ -464,7 +464,7 @@ >>> range(1, 0) [] >>> -\end{verbatim}\ecode +\end{verbatim} \end{funcdesc} \begin{funcdesc}{raw_input}{\optional{prompt}} @@ -473,13 +473,13 @@ converts it to a string (stripping a trailing newline), and returns that. When \EOF{} is read, \code{EOFError} is raised. Example: -\bcode\begin{verbatim} +\begin{verbatim} >>> s = raw_input('--> ') --> Monty Python's Flying Circus >>> s "Monty Python's Flying Circus" >>> -\end{verbatim}\ecode +\end{verbatim} If the \code{readline} module was loaded, then \code{raw_input()} will use it to provide elaborate @@ -604,10 +604,10 @@ \obindex{type} For instance: -\bcode\begin{verbatim} +\begin{verbatim} >>> import types >>> if isinstance(x, types.StringType): print "It's a string" -\end{verbatim}\ecode +\end{verbatim} \end{funcdesc} \begin{funcdesc}{vars}{\optional{object}}
