[Python-Dev] Fwd: summing a bunch of numbers (or "whatevers")
Greg Ward
gward@python.net
Tue, 22 Apr 2003 21:35:06 -0400
On 21 April 2003, Tim Peters said:
> filter() is hard to get rid of because the bizarre filter(None, seq) special
> case is supernaturally fast. Indeed, time the above against
Hmmm, a random idea: has filter() ever been used for anything else?
I didn't think so. So why not remove everything *except* that handy
special-case: ie. in 3.0, filter(seq) == filter(None, seq) today, and
that's *all* filter() does.
Just a random thought...
--
Greg Ward <gward@python.net> http://www.gerg.ca/
Dyslexics of the world, untie!