Filter

suggest change

Syntax

Parameters

Remarks

In most cases a comprehension or generator expression is more readable, more powerful, and more efficient than filter(). In Python 3, filter returns an iterator. The Python 2 name ifilter is gone; the complementary iterator is itertools.filterfalse.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents