summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1999-06-10 22:09:20 (GMT)
committerFred Drake <fdrake@acm.org>1999-06-10 22:09:20 (GMT)
commit697c779d98e454f4b65bca55b0f8844e8b847331 (patch)
treec128439646fcd834c53eecbb84e3ac7c6d8fd02a /Doc/lib
parent28b1770521fecad52914f2775110f2f15d123a66 (diff)
downloadcpython-697c779d98e454f4b65bca55b0f8844e8b847331.zip
cpython-697c779d98e454f4b65bca55b0f8844e8b847331.tar.gz
cpython-697c779d98e454f4b65bca55b0f8844e8b847331.tar.bz2
Adjust indexing for __import__(); based on comments by Stefan Franke
<sfranke@cdc-group.com>.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libfuncs.tex23
1 files changed, 11 insertions, 12 deletions
diff --git a/Doc/lib/libfuncs.tex b/Doc/lib/libfuncs.tex
index d2167fb..73aa5d4 100644
--- a/Doc/lib/libfuncs.tex
+++ b/Doc/lib/libfuncs.tex
@@ -7,18 +7,17 @@ are always available. They are listed here in alphabetical order.
\setindexsubitem{(built-in function)}
\begin{funcdesc}{__import__}{name\optional{, globals\optional{, locals\optional{, fromlist}}}}
-This function is invoked by the \keyword{import} statement. It
-mainly exists so that you can replace it with another
-function that has a compatible interface, in order to change the
-semantics of the \keyword{import} statement. For examples of why and
-how you would do this, see the standard library modules
-\module{ihooks} and \module{rexec}. See also the built-in module
-\module{imp}, which defines some useful operations out of which you can
-build your own \function{__import__()} function.
-\stindex{import}
-\refstmodindex{ihooks}
-\refstmodindex{rexec}
-\refbimodindex{imp}
+This function is invoked by the
+\keyword{import}\stindex{import} statement. It mainly
+exists so that you can replace it with another function that has a
+compatible interface, in order to change the semantics of the
+\keyword{import} statement. For examples of why and how you would do
+this, see the standard library modules
+\module{ihooks}\refstmodindex{ihooks} and
+\refmodule{rexec}\refstmodindex{rexec}. See also the built-in module
+\refmodule{imp}\refbimodindex{imp}, which defines some useful
+operations out of which you can build your own
+\function{__import__()} function.
For example, the statement `\code{import} \code{spam}' results in the
following call: