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

Terry Reedy tjreedy at udel.edu
Mon Mar 16 00:04:11 CET 2009

Aahz wrote:
> On Sun, Mar 15, 2009, Michael Foord wrote:
> It seems to me that we as a development community already made a decision
> when we switched to StopIteration as the primary mechanism for halting
> ``for`` loops. 

If was previously IndexError that stopped for loops, so that was not new 

More information about the Python-Dev mailing list