GoTo considered missing

David Lees debl2nonospammywhammmy at bellatlantic.net
Tue Jul 2 21:38:15 EDT 2002


There was a relatively recent extended exchange which you can find
either in dejanews or by looking back on 6/19/02 for a subject line:
'GOTO w/ Python?'.  It is a hot button topic for a few people, but you
will find some nice discussion in the followups plus useful links such
as:
http://www.acm.org/classics/oct95/ (this particular one posted by Simon
Brunning)

David Lees

Harvey Frey wrote:
> 
>     OK. I'm a spaghetti-coder from way back, new to Python.
> I didn't even realize there was no "goto" till I tried to rewrite a big C
> program in Python.
> 
>     Breaks and Continues are fine for single loops, but:
> What is the approved Python method for getting from the bottom of a set of
> nested loops to the top?
> 
>     Maybe I could rewrite the big loop with function calls, but I'd be
> knee-deep in recursion.
> 
> Harvey
> =========================
> Harvey S. Frey MD PhD Esq.
> hsfrey at harp.org  www.harp.org
> C'est Vrai. C'est Frey!
> =========================



More information about the Python-list mailing list