]> granicus.if.org Git - python/commitdiff
In description of __import__, second paragraph, break up the markup for long
authorFred Drake <fdrake@acm.org>
Fri, 13 Feb 1998 21:26:35 +0000 (21:26 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 13 Feb 1998 21:26:35 +0000 (21:26 +0000)
\code{} at each embedded space, so that the words will wrap.  This keeps it
from running off the side of the page, and is only slightly weird.

Doc/lib/libfuncs.tex
Doc/libfuncs.tex

index 6a2b0a57be13a0a32dff8ca5247c0c0c919508ad..ee69e71d88e3fc2b730130e431875bc96fe0f5c8 100644 (file)
@@ -22,11 +22,12 @@ build your own \code{__import__()} function.
 \refstmodindex{rexec}
 \refbimodindex{imp}
 
-For example, the statement \code{import spam} results in the following
-call:
-\code{__import__('spam', globals(), locals(), [])};
-the statement \code{from spam.ham import eggs} results in
-\code{__import__('spam.ham', globals(), locals(), ['eggs'])}.
+For example, the statement \code{import} \code{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'])}.
 Note that even though \code{locals()} and \code{['eggs']} are passed
 in as arguments, the \code{__import__()} function does not set the
 local variable named \code{eggs}; this is done by subsequent code that
index 6a2b0a57be13a0a32dff8ca5247c0c0c919508ad..ee69e71d88e3fc2b730130e431875bc96fe0f5c8 100644 (file)
@@ -22,11 +22,12 @@ build your own \code{__import__()} function.
 \refstmodindex{rexec}
 \refbimodindex{imp}
 
-For example, the statement \code{import spam} results in the following
-call:
-\code{__import__('spam', globals(), locals(), [])};
-the statement \code{from spam.ham import eggs} results in
-\code{__import__('spam.ham', globals(), locals(), ['eggs'])}.
+For example, the statement \code{import} \code{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'])}.
 Note that even though \code{locals()} and \code{['eggs']} are passed
 in as arguments, the \code{__import__()} function does not set the
 local variable named \code{eggs}; this is done by subsequent code that