(original) (raw)
On 4/7/06, Nick Coghlan <ncoghlan@gmail.com> wrote:
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. ;)
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 <thomas@python.org>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!