Python goto

Chris Angelico rosuav at gmail.com
Tue Jan 2 13:28:47 EST 2018


On Wed, Jan 3, 2018 at 5:16 AM, Rob Gaddi
<rgaddi at highlandtechnology.invalid> wrote:
> On 12/28/2017 04:35 AM, Skip Montanaro wrote:
>>
>> 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
>>
>
> If only all that power had been used for good instead of evil...
>

An evto statement?

ChrisA



More information about the Python-list mailing list