summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libfuncs.tex
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-04-21 10:32:28 (GMT)
committerGuido van Rossum <guido@python.org>1994-04-21 10:32:28 (GMT)
commit1738311dab01da9ed884bd3d9622ead932fc6905 (patch)
tree118f885798272629ccfd24e0611bc7d1e274d23e /Doc/lib/libfuncs.tex
parent590b289672f340f2d122c6d75f195949213974e8 (diff)
downloadcpython-1738311dab01da9ed884bd3d9622ead932fc6905.zip
cpython-1738311dab01da9ed884bd3d9622ead932fc6905.tar.gz
cpython-1738311dab01da9ed884bd3d9622ead932fc6905.tar.bz2
Documented new built-in function vars().
Documented new formatting features: %s takes any type, and '%(key)format' % dictionary. Documented posixpath.expandvars().
Diffstat (limited to 'Doc/lib/libfuncs.tex')
-rw-r--r--Doc/lib/libfuncs.tex12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 73bc145..ab4b03c 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -355,6 +355,18 @@ its goal is to return a printable string.
\end{verbatim}\ecode
\end{funcdesc}
+\begin{funcdesc}{vars}{}
+Without arguments, return a dictionary corresponding to the current
+local symbol table. With a module, class or class instance object as
+argument (or anything else that has a \code{__dict__} attribute),
+returns a dictionary corresponding to the object's symbol table.
+The returned dictionary should not be modified: the effects on the
+corresponding symbol table are undefined.%
+\footnote{In the current implementation, local variable bindings
+cannot normally be affected this way, but variables retrieved from
+other scopes can be. This may change.}
+\end{funcdesc}
+
\begin{funcdesc}{xrange}{start\, end\, step}
This function is very similar to \code{range()}, but returns an
``xrange object'' instead of a list. This is an opaque sequence type