[issue18652] Add itertools.first_true (return first true item in iterable)

Antoine Pitrou report at bugs.python.org
Sun Aug 11 11:53:17 CEST 2013


Antoine Pitrou added the comment:

> How large will be a C implementation of this one-line function?
> 
> I'm still -1 for polluting the itertools module with trivial
> combinations of existing functions.

The solution is to move the current itertools to _itertools and have a
companion itertools.py.

----------

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


More information about the Python-bugs-list mailing list