diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:30:08 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-01-16 11:30:08 (GMT) |
commit | 13dd9d99782fda12b10fc17b95d32210ff4e9b3e (patch) | |
tree | c910faf25625f49e8d447b7710c695dff561777f | |
parent | 2206cd17ceb9a3f59e77db069f9b2e7d253daa3d (diff) | |
download | cpython-13dd9d99782fda12b10fc17b95d32210ff4e9b3e.zip cpython-13dd9d99782fda12b10fc17b95d32210ff4e9b3e.tar.gz cpython-13dd9d99782fda12b10fc17b95d32210ff4e9b3e.tar.bz2 |
Patch #662454: import a.b as c is ok, fixes #660811.
-rw-r--r-- | Doc/ref/ref6.tex | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Doc/ref/ref6.tex b/Doc/ref/ref6.tex index 6c252ed..03dec51 100644 --- a/Doc/ref/ref6.tex +++ b/Doc/ref/ref6.tex @@ -678,11 +678,7 @@ The first form of \keyword{import} statement binds the module name in the local namespace to the module object, and then goes on to import the next identifier, if any. If the module name is followed by \keyword{as}, the name following \keyword{as} is used as the local -name for the module. To avoid confusion, you cannot import modules -with dotted names \keyword{as} a different local name. So \code{import -module as m} is legal, but \code{import module.submod as s} is not. -The latter should be written as \code{from module import submod as s}; -see below. +name for the module. The \keyword{from} form does not bind the module name: it goes through the list of identifiers, looks each one of them up in the module found in step |