Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49102

Re: Is this PEP-able? fwhile

References <8D03F2B8CF0E7BE-1864-1796B@webmail-m103.sysops.aol.com> <CAPTjJmrwNyF2-J8F3ii8W4WpkrNC67+i88ODLyiqHGa_7bz0Xg@mail.gmail.com> <20130624173050.5e16debf@bigbox.christie.dr> <CAPTjJmoHtrRSmag1woY5d-5=nauR40oijMbxP7Oda+Y=dH17iA@mail.gmail.com> <51C8CC25.1060102@mrabarnett.plus.com>
Date 2013-06-25 00:06 +0100
Subject Re: Is this PEP-able? fwhile
From Fábio Santos <fabiosantosart@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3783.1372115209.3114.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 25 Jun 2013 00:04, "MRAB" <python@mrabarnett.plus.com> wrote:
>
> On 24/06/2013 23:35, Chris Angelico wrote:
>>
>> On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase
>> <python.list@tim.thechases.com> wrote:
>>>
>>> On 2013-06-25 07:38, Chris Angelico wrote:
>>>>
>>>> Python has no issues with breaking out of loops, and even has
>>>> syntax specifically to complement it (the 'else:' clause). Use
>>>> break/continue when appropriate.
>>>
>>>
>>> from minor_gripes import breaking_out_of_nested_loops_to_top_level
>>
>>
>> True. There are times I do wish for a 'goto'. But if goto were
>> implemented, I would also use it for jumping _into_ loops, and I'm not
>> sure that's going to make the feature popular :)
>>
> I think a better way would be to label the outer loop somehow and then
> break out of it by name.

I like how discussions on this list tend to go off topic ;)

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Is this PEP-able? fwhile Fábio Santos <fabiosantosart@gmail.com> - 2013-06-25 00:06 +0100

csiph-web