On Tuesday, June 25, 2013 4:44:44 AM UTC+5:30, alex23 wrote:
> I'd probably just go with a generator expression to feed the for loop:
> 
>      for X in (i for i in ListY if conditionZ):
> 
>          ....

Nice idiom -- thanks
Yes it does not correspond to a takewhile (or break in the control structure 
world).  It does correspond to a filter
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to