[Compiler-sig] Import and ImportFrom

Finn Bock bckfnn@worldonline.dk
Sat, 13 Apr 2002 21:13:43 GMT


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