Re: Python goto

2018-01-02 Thread Chris Angelico
On Wed, Jan 3, 2018 at 5:16 AM, Rob Gaddi 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 >>

Re: Python goto

2018-01-02 Thread Rob Gaddi
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 i

Re: Python goto

2017-12-29 Thread Grant Edwards
On 2017-12-28, Skip Montanaro wrote: > 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. That's brilliant! Not that I'd look kindly on anybody who used it on project I ended up

Re: Python goto

2017-12-28 Thread Skip Montanaro
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

Re: Python goto

2017-12-28 Thread Ned Batchelder
On 12/28/17 6:43 AM, jorge.conr...@cptec.inpe.br wrote: Hi, I would like to know if there is a goto command or something similar that I can use in Python. Python does not have a goto statement. You have to use structured statements: for, while, try/except, yield, return, etc. If you sh

Python goto

2017-12-28 Thread jorge . conrado
Hi, I would like to know if there is a goto command or something similar that I can use in Python. Thanks, Conrado -- https://mail.python.org/mailman/listinfo/python-list