03.12.20 15:59, Chris Angelico пише: > well... uhhh.... Technically you can do that already.... > > for a in aaa: > for b in bbb: > if condition(a, b): > break > else: > continue # We didn't break from b, so continue a > break # We did break b, so break a > > But I don't think anyone's actually doing that :)
I did. :( In cases when functions or generators add significant overhead. _______________________________________________ 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/YUJXBHF2G3VBGUYKMJJ2OPSWWY65ZUC5/ Code of Conduct: http://python.org/psf/codeofconduct/
