A GOTO example (was question: numarray c extension...)

Josiah Carlson jcarlson at nospam.uci.edu
Sun Mar 14 03:32:51 EST 2004


> You have to remember to check the error variable at every step in the
> function, or use else clauses and deal with heavy nesting.  This is a
> perfect situation for GOTO.

I did slip, but it is still fairly easy to do, I just wasn't paying 
attention.  It does show a situation where GOTO can be useful, I'll give 
you that.  Depending on the code, it may be a case where a macro would 
be better suited.

  - Josiah



More information about the Python-list mailing list