[issue18652] Add itertools.coalesce

Mark Dickinson report at bugs.python.org
Sun Aug 4 14:39:05 CEST 2013


Mark Dickinson added the comment:

[Nick]
> Regarding the key parameter name, I believe this is closer to
> itertools.groupby ...

Isn't this mostly about the return type?  `pred` is an indication that a boolean is being returned (or that the return value will be interpreted in a boolean context), while `key` is used for more general transformations.  In that sense, `pred` makes more sense here.

----------
nosy: +mark.dickinson

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18652>
_______________________________________


More information about the Python-bugs-list mailing list