[issue37976] zip() shadows TypeError raised in __iter__() of source iterable

Raymond Hettinger report at bugs.python.org
Thu Aug 29 14:33:21 EDT 2019


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

> Other option is to check ahead if the argument is an iterable.

The other tools that consume iterators don't go down this path and it doesn't seem to have been a problem in practice.  So, I recommend that we not invent new problems that we didn't already have ;-)

Leaving for Sergey to update his PR.

----------

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


More information about the Python-bugs-list mailing list