[issue44571] itertools: takedowhile()

Raymond Hettinger report at bugs.python.org
Thu Jul 8 15:31:27 EDT 2021


Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:

> What if set the last item as an attribute of the takewhile iterator?

Perhaps raise an attribute error unless the falsifying element is set?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44571>
_______________________________________


More information about the Python-bugs-list mailing list