[Python-Dev] 'import as' (original) (raw)
Fred L. Drake, Jr. fdrake@beopen.com
Sat, 19 Aug 2000 08:44:00 -0400 (EDT)
- Previous message: [Python-Dev] 'import as'
- Next message: [Python-Dev] 'import as'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Ka-Ping Yee writes:
If the intent of this last form is to import a sub-module of a package into the local namespace with an aliased name, then you can just say
from <pkgname> import <modname> as <localname>
I could live with this restriction, and this expression is unambiguous (a good thing for Python!).
-Fred
-- Fred L. Drake, Jr. BeOpen PythonLabs Team Member
- Previous message: [Python-Dev] 'import as'
- Next message: [Python-Dev] 'import as'
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]