[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I am wondering if there is such a thing, as python is moving away from
This becomes a valid list comprehension by writing 'if' instead of 'when'. > FP functions like dropwhile/takewhile etc. No way -- the itertools module is and remains a PRECIOUS resource. If you want an iterator rather than a list, itertools.ifilter is quite appropriate here. Alex -- http://mail.python.org/mailman/listinfo/python-list