"Goto" statement in Python

Ian Kelly ian.g.kelly at gmail.com
Thu Apr 13 11:03:20 EDT 2017


On Thu, Apr 13, 2017 at 8:52 AM, bartc <bc at freeuk.com> wrote:
> On 13/04/2017 15:35, Chris Angelico wrote:
>> Personally, I can't remember the last time I yearned for "goto" in
>> Python, and the only times I've ever wished for it or used it in other
>> languages have been multi-loop breaks or "for...else" blocks. And
>> neither is very frequent.
>
>
> It might be a better idea to have a multi-level loop break then. This would
> also be an absolute jump byte-code.

This has previously been proposed and rejected:
https://www.python.org/dev/peps/pep-3136/
Rejection notice:
https://mail.python.org/pipermail/python-3000/2007-July/008663.html


More information about the Python-list mailing list