On 4/7/06, Nick Coghlan <[EMAIL PROTECTED]> wrote:
It would be nice if this chain could instead be written as:

   from stringio or cStringIO or StringIO import StringIO

Similar to PEP 341, this could be pure syntactic sugar, with the actual
try-except statements generated in the AST.

It could, but it's probably easier to make the IMPORT_NAME (and possibly IMPORT_FROM) opcodes take more names from the stack, and do it all in the C code for the opcodes. And __import__ could be changed to accept a sequence of modules (it takes keyword arguments now, anyway. ;)

--
Thomas Wouters <[EMAIL PROTECTED]>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to