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 -- 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/YUJXBHF2G3VBGUYKMJJ2OPSWWY65ZUC5/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to