filter2

Thomas Heller theller at python.net
Thu Jun 13 10:39:51 EDT 2002


"Oleg Broytmann" <phd at phd.pp.ru> wrote in message news:mailman.1023975618.6474.python-list at python.org...
> Hello!
>
>    I want to have new python builtin - filter2. It is exactly like filter,
> but it returns also a list of items that didn't pass the test.
>

IIRC, in Smalltalk they were named 'select' (like filter), and 'reject' (like your filter2).
IMO these are much better names then filter and filter2.

Thomas





More information about the Python-list mailing list