This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gvanrossum
Recipients belopolsky, benjamin.peterson, gvanrossum, rhettinger
Date 2008-02-26.04:40:59
SpamBayes Score 0.03209166
Marked as misclassified No
Message-id <[email protected]>
In-reply-to <[email protected]>
Content
>  What do you guys think about just making the predicate argument optional?
>
>    filter([-2,0,2]) --> -2, 2
>    filter(pred, iterable)
>
>  One arg is the first case and two args is the second case.

-1. Apart from range() this is used nowhere else in Python. (Well, it
is in curses, but it's an abomination there too.) I'd rather keep
explicit None that *this*, though I really don't see what's wrong with
filter(bool, ...) -- you can even optimize for that pattern.
History
Date User Action Args
2008-02-26 04:41:02gvanrossumsetspambayes_score: 0.0320917 -> 0.03209166
recipients: + gvanrossum, rhettinger, belopolsky, benjamin.peterson
2008-02-26 04:41:00gvanrossumlinkissue2186 messages
2008-02-26 04:40:59gvanrossumcreate