Dear all,
can anybody point out a situation where you really need itertools.filterfalse() 
?
So far, I couldn't think of a case where you couldn't replace it with a
generator expression/if combination.
e.g.,

a=filterfalse(lambda x: x%2, range(1,101))
b=(i for i in range(1,101) if not i % 2)

do not return the same object type, but otherwise are achieving the same thing.
What am I missing here? For sure filterfalse exists for a reason?

Best,
Wolfgang

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to