]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Adjust indexing for __import__(); based on comments by Stefan Franke
authorFred Drake <fdrake@acm.org>
Thu, 10 Jun 1999 22:09:20 +0000 (22:09 +0000)
committerFred Drake <fdrake@acm.org>
Thu, 10 Jun 1999 22:09:20 +0000 (22:09 +0000)
<sfranke@cdc-group.com>.

Doc/lib/libfuncs.tex

index d2167fb5b5925da44fc644bd692b641ed0e936d4..73aa5d44baf04528e029632d829af65ac4d2bff1 100644 (file)
@@ -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: