labeled break/continue

M

Matt Chisholm

Hi. I was wondering if there had ever been an official decision on
the idea of adding labeled break and continue functionality to Python.

I've found a few places where the idea has come up, in the context of
named code blocks:

http://groups.google.com/group/comp...k=gst&q=labeled+break&rnum=1#065b1dbc13ec2807

and in the context of discussing do/while loops and assignments in
conditionals:

http://groups.google.com/group/comp...k=gst&q=labeled+break&rnum=3#979ca3cd42633b52

Both of those discussions just kind of petered out or changed
direction without any conclusion.

There's also this Python 2.6 which has a similar syntax (although
different semantics) to one of the syntaxes proposed in the first
discussion above:

http://sourceforge.net/tracker/index.php?func=detail&aid=1714448&group_id=5470&atid=355470

I would be willing to help make a case and then write a PEP for
labeled break and continue, as long as the community or the BDFL
hasn't already decided against it.

-matt

P.S. My apologies about cross posting; python-ideas seems like a
better place to post this, but PEP 1 says to post to python-list.
 
F

faulkner

Hi. I was wondering if there had ever been an official decision on
the idea of adding labeled break and continue functionality to Python.

I've found a few places where the idea has come up, in the context of
named code blocks:

http://groups.google.com/group/comp.lang.python/browse_thread/thread/...

and in the context of discussing do/while loops and assignments in
conditionals:

http://groups.google.com/group/comp.lang.python/browse_thread/thread/...

Both of those discussions just kind of petered out or changed
direction without any conclusion.

There's also this Python 2.6 which has a similar syntax (although
different semantics) to one of the syntaxes proposed in the first
discussion above:

http://sourceforge.net/tracker/index.php?func=detail&aid=1714448&grou...

I would be willing to help make a case and then write a PEP for
labeled break and continue, as long as the community or the BDFL
hasn't already decided against it.

-matt

P.S. My apologies about cross posting; python-ideas seems like a
better place to post this, but PEP 1 says to post to python-list.

python-dev just mentioned that the BDFL vetoed it a while ago.
they're writing a PEP just to document why it was vetoed.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top