File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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'])}.
3031Note that even though \code {locals()} and \code {['eggs']} are passed
3132in as arguments, the \code {__import__()} function does not set the
3233local variable named \code {eggs}; this is done by subsequent code that
Original file line number Diff line number Diff 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'])}.
3031Note that even though \code {locals()} and \code {['eggs']} are passed
3132in as arguments, the \code {__import__()} function does not set the
3233local variable named \code {eggs}; this is done by subsequent code that
You can’t perform that action at this time.
0 commit comments