Jason R. Coombs <jar...@jaraco.com> added the comment:

I believe I encountered this issue today on Python 2.7.14 
 In this case, I have an iterable (in itertools.imap) that raises a TypeError 
when evaluated, not a generator.

The issue doesn't happen on Python 3, where 'map' is used instead of 

Does this patch need to be extended to support any iterable?

nosy: +jason.coombs

Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list

Reply via email to