Import and ImportFrom

[email protected] (Finn Bock) Sat, 13 Apr 2002 21:13:43 GMT
Newsgroups gmane.comp.python.compiler
Message-ID <[email protected]>
Hi,

I think a refactoring of Import is required in order to support a list
of aliases:

   from p import a, b as c, d as e
   import a, b as c, d as e

How about this definition:

	      | Import(alias* names)
	      | ImportFrom(identifier module, alias* names)

	alias = (identifier name, identifier? asname)

?

regards,
finn