Python goto
Skip Montanaro
skip.montanaro at gmail.com
Thu Dec 28 07:35:01 EST 2017
Jorge> I would like to know if there is a goto command or something similar that
Jorge> I can use in Python.
Ned> Python does not have a goto statement. You have to use structured
Ned> statements: for, while, try/except, yield, return, etc.
Though it appears some wag has used function decorators to implement
goto statements:
https://pypi.python.org/pypi/goto-statement/1.1
Rather clever, it seems.
Skip
More information about the Python-list
mailing list