28.10.19 20:38, Andrew Barnert via Python-ideas пише:
Many of them are abusing throw(StopIteration) to fake a “takewhile clause” in comprehensions
Well, so actually you needed the break expression. Or multistatement comprehension.
_______________________________________________ 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/NVG7GVCPVOG6W3GHYBNLN3JL4YH5BOMW/ Code of Conduct: http://python.org/psf/codeofconduct/
