[Python-Dev] Re: anonymous blocks

Michael Hudson mwh at python.net
Tue Apr 26 16:26:27 CEST 2005


On 26 Apr 2005, at 15:13, Michael Hudson wrote:
> So, here's a counterproposal!

And a correction!
> with expr as var:
> ... code ...
>> is roughly:

def _(var):
 ... code ...
try:
 expr(_)
except Return, e:
 return e.value
Cheers,
mwh


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /