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 <>
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.
Date User Action Args
2013-08-04 11:50:16ncoghlansetrecipients: + ncoghlan, loewis, rhettinger, lukasz.langa, hynek, serhiy.storchaka
2013-08-04 11:50:16ncoghlansetmessageid: <>
2013-08-04 11:50:16ncoghlanlinkissue18652 messages
2013-08-04 11:50:15ncoghlancreate