Goto

Chris Angelico rosuav at gmail.com
Thu Dec 28 20:27:46 EST 2017


On Fri, Dec 29, 2017 at 11:17 AM, bartc <bc at freeuk.com> wrote:
> On 28/12/2017 21:42, Ben Finney wrote:
>>
>> Duram <duram at newsguy.com> writes:
>>
>>> How to use goto in python?
>>
>>
>> Step 0: what is goto in Python?
>>
>> Step 1: that's not something that exists in Python. So why are you
>> asking how to use something that doesn't exist?
>
>
> Goto exists in the form of the JUMP_ABSOLUTE byte-code.
>
> But it's not accessible from the language.
>

That's an implementation detail in one implementation of Python
(albeit the most popular one). It is not part of the language.

ChrisA



More information about the Python-list mailing list