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/a696624c92b91181/065b1dbc13ec2807?lnk=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.lang.python/browse_thread/thread/6da848f762c9cf58/979ca3cd42633b52?lnk=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.
On Sun, Jun 17, 2007, Matt Chisholm wrote:
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.
You would do the community a service to write the PEP even if the BDFL already vetoed it -- PEPs are valuable documentation of *why* an idea is rejected. -- Aahz (firstname.lastname@example.org) <*> http://www.pythoncraft.com/ "as long as we like the same operating system, things are cool." --piranha