On 2019-12-04 5:12 p.m., Mike Miller wrote:
On 2019-12-04 11:05, David Mertz wrote:
I've often wanted named loops. I know approaches to this have been
proposed many times, and they all have their own warts. E.g. an ad
hoc pseudo code that may or may not match any previous proposal:
for x in stuff as outer:
for y in other_stuff as inner:
...
if cond:
break outer
But we all manage without it.
+1 Nice, find myself with that problem about once a year and it is
annoying to code around.
Just use context managers!
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/O6GZEZFHW7GEPJJ2U6DRON2J6DP6ICGL/
Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/IXYIK45GME5JGNY4JPRPIK3F7IGQYPR6/
Code of Conduct: http://python.org/psf/codeofconduct/