I think this is the kind of feature that can very easily be abused. Whenever I 
want to break out of a nested loop I take this as an opportunity to extract the 
loop into its own function and use the return statement to break out of the 
loop. IMO this is a lot better than having named or indexed loop control 
because a proper function can later be reusable, and it lets you explain why 
you need to return early in the docstring.
_______________________________________________
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/SMU7CAFHWQROQYLWK3HEL5XDDRXKU46Z/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to