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

Skip to content

Commit 13dd9d9

Browse files
committed
Patch #662454: import a.b as c is ok, fixes #660811.
1 parent 2206cd1 commit 13dd9d9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Doc/ref/ref6.tex

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -678,11 +678,7 @@ \section{The \keyword{import} statement \label{import}}
678678
the local namespace to the module object, and then goes on to import
679679
the next identifier, if any. If the module name is followed by
680680
\keyword{as}, the name following \keyword{as} is used as the local
681-
name for the module. To avoid confusion, you cannot import modules
682-
with dotted names \keyword{as} a different local name. So \code{import
683-
module as m} is legal, but \code{import module.submod as s} is not.
684-
The latter should be written as \code{from module import submod as s};
685-
see below.
681+
name for the module.
686682
687683
The \keyword{from} form does not bind the module name: it goes through the
688684
list of identifiers, looks each one of them up in the module found in step

0 commit comments

Comments
 (0)