summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-02-13 21:26:35 (GMT)
committerFred Drake <fdrake@acm.org>1998-02-13 21:26:35 (GMT)
commit315b5d8a7f5adfb94b64f7a38963c352ff14ab76 (patch)
tree7c3bde692aa1ea6f46f7bd190c0c7cb3daefe9ed
parent83bd0819208a4373a5b380b991fbdfe60f20b8db (diff)
downloadcpython-315b5d8a7f5adfb94b64f7a38963c352ff14ab76.zip
cpython-315b5d8a7f5adfb94b64f7a38963c352ff14ab76.tar.gz
cpython-315b5d8a7f5adfb94b64f7a38963c352ff14ab76.tar.bz2
In description of __import__, second paragraph, break up the markup for long
\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.
-rw-r--r--Doc/lib/libfuncs.tex11
-rw-r--r--Doc/libfuncs.tex11
2 files changed, 12 insertions, 10 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index 6a2b0a5..ee69e71 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -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
diff --git a/Doc/libfuncs.tex b/Doc/libfuncs.tex
index 6a2b0a5..ee69e71 100644
--- a/Doc/libfuncs.tex
+++ b/Doc/libfuncs.tex
@@ -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