Documented new built-in function vars().

Documented new formatting features: %s takes any type, and
'%(key)format' % dictionary.
Documented posixpath.expandvars().
This commit is contained in:
Guido van Rossum 1994-04-21 10:32:28 +00:00
parent 590b289672
commit 1738311dab
6 changed files with 72 additions and 2 deletions

View file

@ -34,6 +34,14 @@ the built-in module \code{pwd}. If the expansion fails, or if the
path does not begin with a tilde, the path is returned unchanged.
\end{funcdesc}
\begin{funcdesc}{expandvars}{p}
Return the argument with environment variables expanded. Substrings
of the form \samp{\$\var{name}} or \samp{\$\{\var{name}\}} are
replaced by the value of environment variable \var{name}. Malformed
variable names and references to non-existing variables are left
unchanged.
\end{funcdesc}
\begin{funcdesc}{isabs}{p}
Return true if \var{p} is an absolute pathname (begins with a slash).
\end{funcdesc}