judicious use of the for loop "else" may help here, too -- I know I often forget it's there.
-CHB On Sat, May 11, 2019 at 2:26 PM Adrien Ricocotam <ricoco...@gmail.com> wrote: > > > > On 11 May 2019, at 23:20, David Mertz <me...@gnosis.cx> wrote: > > > > I don't love the 'break break' syntax idea. But I find myself wanting to > break out of nested loops quite often. Very rarely could this be > transformed to an 'itertools.permutation' de-nesting, albeit perhaps more > often than I actually do that. > > > > Do you have an example of such loops ? > _______________________________________________ > Python-ideas mailing list > Python-ideas@python.org > https://mail.python.org/mailman/listinfo/python-ideas > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Christopher Barker, PhD Python Language Consulting - Teaching - Scientific Software Development - Desktop GUI and Web Development - wxPython, numpy, scipy, Cython
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/