On 29/07/2020 14:51, Ethan Furman wrote:
On 7/28/20 10:30 PM, Rob Cliffe via Python-ideas wrote:
A possible, unrelated, future language extension is to allow breaking
out of more than one loop at a time.
I would think that
break <label>
would handle that situation.
--
~Ethan~
Maybe. But note that you're extending Jonathan's proposal by allowing
the the label to follow an enclosing loop, not the inner loop (at least
he certainly didn't say explicitly that he was proposing that).
Also, you have to create the label, even if you don't want to do
anything when you get there other than 'pass', which is a bit inelegant.
Rob
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/LEBAC5QKDXVCBZJ5NUXTSLFBCW2TW42L/
Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/5VKZJA5RTFS7ONNNLNYLVSMSPBEELLIS/
Code of Conduct: http://python.org/psf/codeofconduct/