Good python equivalent to C goto
Fredrik Lundh
fredrik at pythonware.com
Sun Aug 17 17:34:37 EDT 2008
info at orlans-amo.be wrote:
> The goto code is the simpler way to do it.
> We are not talking about simple if-else, but let say 20 if-else.
> Many nested if-else are more difficult to understand and do not fit
> better the semantics.
let's see...
$ cd ~/svn/python25
$ grep goto */*.c | wc
2107 7038 86791
but given that the Python language doesn't have a goto statement, can we
perhaps drop this subtopic now?
</F>
More information about the Python-list
mailing list