File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -678,11 +678,7 @@ \section{The \keyword{import} statement \label{import}}
678678the local namespace to the module object, and then goes on to import
679679the 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
687683The \keyword {from} form does not bind the module name: it goes through the
688684list of identifiers, looks each one of them up in the module found in step
You can’t perform that action at this time.
0 commit comments