26 Jun
2013
26 Jun
'13
11:44 a.m.
On 26 cze 2013, at 11:24, Greg Ewing <greg.ewing@canterbury.ac.nz> wrote:
Łukasz Langa wrote: Alternatively, the only way I think we can improve on
the syntax above is something like this: do: <code> if condition: break
But if we take a comprehension with a 'while' clause,
[... for a in x while c]
Correct me if I'm wrong but it seems you mixed up two independent threads on the list. I'm discussing an equivalent of the C `do {} while();` loop. This doesn't touch comprehensions at all. -- Best regards, Łukasz Langa WWW: http://lukasz.langa.pl/ Twitter: @llanga IRC: ambv on #python-dev