homepage

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 <ca471dc20802252040l1cef565do3e7335794933fece@mail.gmail.com>
In-reply-to <1203990995.48.0.818155715259.issue2186@psf.upfronthosting.co.za>
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

AltStyle によって変換されたページ (->オリジナル) /