In python there is no goto statement. In C I use goto only in one case: to
exit more then one level of blocks (as a matter of fact, I always use goto
EXIT in C, where EXIT is the label of the end of the function).

In python you can mimic this by throwing an exception and catching it.
Exception should "know" the destination label name and the catch statement
should compare this name  with its (catch statement) name.

"Hayri ERDENER" <[EMAIL PROTECTED]> wrote in message
what is the equivalent of C languages' goto  statement in python?
best regards


Reply via email to