[Python-Dev] PEP 377 - allow __enter__() methods to skip the statement body

Tristan Seligmann mithrandi at mithrandi.net
Mon Mar 16 00:05:48 CET 2009

On Mon, Mar 16, 2009 at 1:00 AM, Michael Foord
<fuzzyman at voidspace.org.uk> wrote:
> You didn't include all the code - so impossible to match the exact
> semantics. Breaking out of multiple loops with a return is a cleaner way to
> handle it IMHO.

I don't really see why this is cleaner; they're both just structured
gotos. Heck, the code even looks practically the same.
mithrandi, i Ainil en-Balandor, a faer Ambar

More information about the Python-Dev mailing list