On Thu, Aug 10, 2017 at 1:03 PM, Terry Reedy <tjre...@udel.edu> wrote:

> After all, we have "break" in both for and while loops, so clearly there is
>>> the use case...
> In both cases, we use 'break' to mean break.  If we want to break
> comprehensions, I think we should continue to use 'break' to mean break
> instead of twisting 'while' to mean 'break'.

I was thinking that too.

>> [expression for x in sequence if condition break]

hmm, but if you want to filter, also?

[expression for x in sequence if condition if condition break]


[expression for x in sequence if condition break if condition ]

both of those seem more confusing to me than while.



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Python-ideas mailing list
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to