diff options
author | Fred Drake <fdrake@acm.org> | 2001-01-18 18:09:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-01-18 18:09:07 (GMT) |
commit | bc0b260a77160a2d24b4ae7296c80304b4e347bd (patch) | |
tree | 9502ea0b7d25aad18c68fdeab3e95604337c9df5 /Doc | |
parent | 697a0b0f966523194ef4f14092bd28c82656d7bd (diff) | |
download | cpython-bc0b260a77160a2d24b4ae7296c80304b4e347bd.zip cpython-bc0b260a77160a2d24b4ae7296c80304b4e347bd.tar.gz cpython-bc0b260a77160a2d24b4ae7296c80304b4e347bd.tar.bz2 |
Minor markup cleaning, and one required fix in the unistr() description.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libfuncs.tex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex index 6b8d64c..693fe60 100644 --- a/Doc/lib/libfuncs.tex +++ b/Doc/lib/libfuncs.tex @@ -19,12 +19,11 @@ this, see the standard library modules operations out of which you can build your own \function{__import__()} function. -For example, the statement `\code{import} \code{spam}' results in the +For example, the statement \samp{import spam} results in the following call: \code{__import__('spam',} \code{globals(),} \code{locals(), [])}; -the statement \code{from} \code{spam.ham import} \code{eggs} results -in \code{__import__('spam.ham',} \code{globals(),} \code{locals(),} -\code{['eggs'])}. +the statement \samp{from spam.ham import eggs} results +in \samp{__import__('spam.ham', globals(), locals(), ['eggs'])}. Note that even though \code{locals()} and \code{['eggs']} are passed in as arguments, the \function{__import__()} function does not set the local variable named \code{eggs}; this is done by subsequent code that @@ -695,9 +694,10 @@ to decode UTF-8 in strict mode, meaning that encoding errors raise \end{funcdesc} \begin{funcdesc}{unistr}{object} -Return a Unicode string containing a nicely printable representation of an -object. For Unicode, this returns the Unicode string itself. For -all other objects, it tries to convert \code{str(\var{object})] to Unicode. +Return a Unicode string containing a nicely printable representation +of an object. For Unicode, this returns the Unicode string itself. +For all other objects, it tries to convert \code{str(\var{object})} to +Unicode. \end{funcdesc} \begin{funcdesc}{vars}{\optional{object}} |