filter2
Oleg Broytmann
phd at phd.pp.ru
Thu Jun 13 10:50:23 EDT 2002
On Thu, Jun 13, 2002 at 04:39:51PM +0200, Thomas Heller wrote:
>
> "Oleg Broytmann" <phd at phd.pp.ru> wrote in message news:mailman.1023975618.6474.python-list at python.org...
> > 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.
It is too late to rename builtin filter, so I modelled fiter2 after it.
Oleg.
--
Oleg Broytmann http://phd.pp.ru/ phd at phd.pp.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list