Re: Is this PEP-able? fwhile

Discussion in 'Python' started by Fábio Santos, Jun 25, 2013.

  1. On 25 Jun 2013 00:04, "MRAB" <> wrote:
    >
    > On 24/06/2013 23:35, Chris Angelico wrote:
    >>
    >> On Tue, Jun 25, 2013 at 8:30 AM, Tim Chase
    >> <> 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 ;)
     
    Fábio Santos, Jun 25, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    2
    Views:
    105
    Chris Angelico
    Jun 26, 2013
  2. Ian Kelly

    Re: Is this PEP-able? fwhile

    Ian Kelly, Jun 24, 2013, in forum: Python
    Replies:
    7
    Views:
    111
  3. Ian Kelly

    Re: Is this PEP-able? fwhile

    Ian Kelly, Jun 24, 2013, in forum: Python
    Replies:
    0
    Views:
    97
    Ian Kelly
    Jun 24, 2013
  4. Fábio Santos

    Re: Is this PEP-able? fwhile

    Fábio Santos, Jun 24, 2013, in forum: Python
    Replies:
    0
    Views:
    105
    Fábio Santos
    Jun 24, 2013
  5. Joshua Landau

    Re: Is this PEP-able? fwhile

    Joshua Landau, Jun 24, 2013, in forum: Python
    Replies:
    0
    Views:
    103
    Joshua Landau
    Jun 24, 2013
Loading...

Share This Page