[Python-Dev] 'import as'

Fred L. Drake, Jr. fdrake@beopen.com
Sat, 19 Aug 2000 08:44:00 -0400 (EDT)


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.  <fdrake at beopen.com>
BeOpen PythonLabs Team Member