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