[Python-ideas] Ruby-style Blocks in Python Idea

tav tav at espians.com
Mon Mar 9 22:20:07 CET 2009


Hey Greg,

> It becomes expected that you can write things like:
>
>  while some_condition:
>    with flapple() do (arg):
>      if some_other_condition:
>        break
>
> and have the 'break' exit from the while-loop.

Thanks for this!!

It's the only counter-argument that I've seen which demonstrates that
my proposal was unpythonic.

As such, I'd like to withdraw my proposal -- sorry for taking up
everybody's time =(

But, hey, live and learn =)

-- 
love, tav

plex:espians/tav | tav at espians.com | +44 (0) 7809 569 369
http://tav.espians.com | http://twitter.com/tav | skype:tavespian



More information about the Python-ideas mailing list