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 loewis
Recipients hynek, loewis, lukasz.langa, ncoghlan, rhettinger, serhiy.storchaka
Date 2013-08-04.11:38:39
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375616319.28.0.683056445036.issue18652@psf.upfronthosting.co.za>
In-reply-to
Content
I also think it should go to itertools.

I also found the name "first" confusing, in particular since it means what Serhiy assumes in LISP, which might be familiar to people interested in functional list processing. Also, Ruby and Smalltalk use "first" in that sense.

To add to the bike shedding, I propose "find_if" (from LISP), "coalesce" (from SQL), or "detect" (from Smalltalk).

-1 on calling the filter function "key=". How about "pred=" (like all other itertools predicates) or "filter="?
History
Date User Action Args
2013-08-04 11:38:39loewissetrecipients: + loewis, rhettinger, ncoghlan, lukasz.langa, hynek, serhiy.storchaka
2013-08-04 11:38:39loewissetmessageid: <1375616319.28.0.683056445036.issue18652@psf.upfronthosting.co.za>
2013-08-04 11:38:39loewislinkissue18652 messages
2013-08-04 11:38:39loewiscreate