[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

Jason R. Coombs report at bugs.python.org
Mon Apr 16 10:11:55 EDT 2018


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

I believe I encountered this issue today on Python 2.7.14 (https://ci.appveyor.com/project/jaraco/jaraco-windows/build/31/job/lenh5l4dcmj137b9). 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 itertools.imap.

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

----------
nosy: +jason.coombs

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


More information about the Python-bugs-list mailing list