Named code blockes

Alex Martelli aleaxit at yahoo.com
Sat Apr 14 14:40:14 EDT 2001


"Steven D. Majewski" <sdm7g at Virginia.EDU> wrote in message
news:mailman.987267203.15768.python-list at python.org...
>
>
> On Sat, 14 Apr 2001, Miki Tebeka wrote:
>
> >Alex:
> > > In Python, you can code around this problem in various ways (besides
    [snip]
>   I wouldn't call it a code-around though -- that just one of the

I would.  If one can break out of one level of loop with the break
statement, why would exceptions be the 'designed' way to break
out of two or three levels?  It's not that rare a need.  It's not an
issue of optimization for me, but of clear and explicit expression
of design intent.


Alex






More information about the Python-list mailing list