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


Groups > comp.lang.python > #49097 > unrolled thread

Re: Is this PEP-able? fwhile

Started byIan Kelly <ian.g.kelly@gmail.com>
First post2013-06-24 16:41 -0600
Last post2013-06-24 16:41 -0600
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Is this PEP-able? fwhile Ian Kelly <ian.g.kelly@gmail.com> - 2013-06-24 16:41 -0600

#49097 — Re: Is this PEP-able? fwhile

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-06-24 16:41 -0600
SubjectRe: Is this PEP-able? fwhile
Message-ID<mailman.3778.1372113725.3114.python-list@python.org>
On Mon, Jun 24, 2013 at 4:35 PM, Chris Angelico <rosuav@gmail.com> 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 :)

You can have labeled break and continue without going all the way to a
goto statement.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web