[Python-Dev] Re: anonymous blocks

Tim Delaney tcdelaney at optusnet.com.au
Thu Apr 28 01:03:37 CEST 2005


Tim Delaney wrote:

> Also, within a for-loop or block-statement, we could have ``raise
> <exception>`` be equivalent to::
>
>    arg = <exception>
>    continue

For this to work, builtin next() would need to be a bit smarter ... 
specifically, for an old-style iterator, any non-Iteration exception would 
need to be re-raised there.

Tim Delaney 



More information about the Python-Dev mailing list