Working around a lack of 'goto' in python

Stephen Horne steve at
Mon Mar 8 06:10:41 CET 2004

On Mon, 08 Mar 2004 03:38:24 GMT, benjamin schollnick
<bscholln at> wrote:

>The significant difference that I believe your forgetting is simply,
>using a "switchboard" function or module, allows you to clearly have
>a defined start, and end position in the code...

In general I'd agree, just not in this case.

>If you can not find a alternative to a GOTO statement, you may need to
>re-examine your concept/structure, and see if there is a alternative
>structure that you may have missed.

No no no - using goto *was* the alternative that I nearly missed.

This is one case in ten years. It's not like I'm addicted to the
things. I can give up gotos any time I want... ;-)

Steve Horne

steve at ninereeds dot fsnet dot co dot uk

More information about the Python-list mailing list