Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 315b5d8

Browse files
committed
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.
1 parent 83bd081 commit 315b5d8

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

Doc/lib/libfuncs.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ \section{Built-in Functions}
2222
\refstmodindex{rexec}
2323
\refbimodindex{imp}
2424

25-
For example, the statement \code{import spam} results in the following
26-
call:
27-
\code{__import__('spam', globals(), locals(), [])};
28-
the statement \code{from spam.ham import eggs} results in
29-
\code{__import__('spam.ham', globals(), locals(), ['eggs'])}.
25+
For example, the statement \code{import} \code{spam} results in the
26+
following call:
27+
\code{__import__('spam',} \code{globals(),} \code{locals(), [])};
28+
the statement \code{from} \code{spam.ham import} \code{eggs} results
29+
in \code{__import__('spam.ham',} \code{globals(),} \code{locals(),}
30+
\code{['eggs'])}.
3031
Note that even though \code{locals()} and \code{['eggs']} are passed
3132
in as arguments, the \code{__import__()} function does not set the
3233
local variable named \code{eggs}; this is done by subsequent code that

Doc/libfuncs.tex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@ \section{Built-in Functions}
2222
\refstmodindex{rexec}
2323
\refbimodindex{imp}
2424

25-
For example, the statement \code{import spam} results in the following
26-
call:
27-
\code{__import__('spam', globals(), locals(), [])};
28-
the statement \code{from spam.ham import eggs} results in
29-
\code{__import__('spam.ham', globals(), locals(), ['eggs'])}.
25+
For example, the statement \code{import} \code{spam} results in the
26+
following call:
27+
\code{__import__('spam',} \code{globals(),} \code{locals(), [])};
28+
the statement \code{from} \code{spam.ham import} \code{eggs} results
29+
in \code{__import__('spam.ham',} \code{globals(),} \code{locals(),}
30+
\code{['eggs'])}.
3031
Note that even though \code{locals()} and \code{['eggs']} are passed
3132
in as arguments, the \code{__import__()} function does not set the
3233
local variable named \code{eggs}; this is done by subsequent code that

0 commit comments

Comments
 (0)