āžœ

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 hynek
Recipients hynek, loewis, lukasz.langa, mark.dickinson, ncoghlan, rhettinger, serhiy.storchaka
Date 2013-08-04.14:23:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <EAE0DFF2-2FF2-4186-8661-C080BCC895CE@ox.cx>
In-reply-to <1375622981.3.0.387078682534.issue18652@psf.upfronthosting.co.za>
Content
> def coalesce(iterable, default=None, pred=None):
>        return next(filter(pred, iterable), default)
> 
> Are you sure you want add this one-line function to the itertools module rather then to recipes?

Well, for many ā€“ including me ā€“ it would mean to have this one-line function in every other project or a PyPI dependency.  Iā€™m certain there are other short but useful functions in the stdlib.
History
Date User Action Args
2013-08-04 14:23:42hyneksetrecipients: + hynek, loewis, rhettinger, mark.dickinson, ncoghlan, lukasz.langa, serhiy.storchaka
2013-08-04 14:23:42hyneklinkissue18652 messages
2013-08-04 14:23:42hynekcreate