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 ncoghlan
Recipients hynek, loewis, lukasz.langa, ncoghlan, rhettinger, serhiy.storchaka
Date 2013-08-04.11:50:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1375617016.12.0.217582215461.issue18652@psf.upfronthosting.co.za>
In-reply-to
Content
Regarding the key parameter name, I believe this is closer to itertools.groupby (which uses "key=" as an optional argument, akin to min, max and sorted) than it is to filterfalse, dropwhile or takewhile (which use "pred" as the first positional argument)

The only use of "pred" in the optional key argument sense appears to be the "quantify" recipe.

+1 for itertools.coalesce, taking the name from SQL. It's designed to serve exactly the same purpose as COALESCE does there, doesn't risk confusion with next-like behaviour the way "first" does and hints strongly at the fact it is a reduction operation from an iterable to a single value.
History
Date User Action Args
2013-08-04 11:50:16ncoghlansetrecipients: + ncoghlan, loewis, rhettinger, lukasz.langa, hynek, serhiy.storchaka
2013-08-04 11:50:16ncoghlansetmessageid: <1375617016.12.0.217582215461.issue18652@psf.upfronthosting.co.za>
2013-08-04 11:50:16ncoghlanlinkissue18652 messages
2013-08-04 11:50:15ncoghlancreate