Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Is this PEP-able? fwhile

Reply
Thread Tools

Re: Is this PEP-able? fwhile

 
 
Göktuğ Kayaalp
Guest
Posts: n/a
 
      06-25-2013
On Mon, Jun 24, 2013 at 11:45:57PM +0100, MRAB wrote:
> On 24/06/2013 23:35, Chris Angelico wrote:
> >On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase
> ><(E-Mail Removed)> 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.


Would say that procedure-scoped gotos are useful for more than
manipulating loops indeed. Doubt if either will be in Python ever
though.

--
Göktuğ Kayaalp <(E-Mail Removed)>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is this PEP-able? fwhile jimjhb@aol.com Python 2 06-26-2013 07:40 AM
Re: Is this PEP-able? fwhile Ian Kelly Python 7 06-25-2013 06:04 AM
Re: Is this PEP-able? fwhile Joshua Landau Python 0 06-24-2013 08:40 PM
Re: Is this PEP-able? fwhile Fbio Santos Python 0 06-24-2013 08:34 PM
Re: Is this PEP-able? fwhile Ian Kelly Python 0 06-24-2013 08:19 PM



Advertisments