Proposal: Inline Import

Xavier Morel xavier.morel at masklinn.net
Fri Dec 9 15:32:24 EST 2005


Shane Hathaway wrote:
> Thoughts?

 >>> import re; name_expr = re.compile('[a-zA-Z]+')
 >>> name_expr
<_sre.SRE_Pattern object at 0x00F9D338>
 >>>

the import statement can be called anywhere in the code, why would you 
add strange syntactic sugar that doesn't actually bring anything?



More information about the Python-list mailing list