[Python-Dev] "as" mania

Georg Brandl g.brandl at gmx.net
Tue Mar 7 15:15:42 CET 2006


Hi,

while "as" is being made a keyword, I remembered parallels between "with"
and a proposal made some time ago:

with expr as f:
    do something with f

while expr as f:
    do something with f

if expr as f:
    do something with f
elif expr as f:
    do something else with f

What do you think?

Georg



More information about the Python-Dev mailing list