A GOTO example (was question: numarray c extension...)
jcarlson at nospam.uci.edu
Sun Mar 14 09:32:51 CET 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.
More information about the Python-list