Author sir-sigurd
Recipients sir-sigurd
Date 2019-08-29.10:30:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567074610.14.0.32757366853.issue37976@roundup.psfhosted.org>
In-reply-to
Content
zip() shadows TypeError raised in __iter__() of source iterable:

In [21]: class Iterable:
    ...:     def __init__(self, n):
    ...:         self.n = n
    ...:     def __iter__(self):
    ...:         return iter(range(self.n))
    ...:     

In [22]: zip(Iterable('one'))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-22-66835be83afa> in <module>()
----> 1 zip(Iterable('one'))

TypeError: zip argument #1 must support iteration
History
Date User Action Args
2019-08-29 10:30:10sir-sigurdsetrecipients: + sir-sigurd
2019-08-29 10:30:10sir-sigurdsetmessageid: <1567074610.14.0.32757366853.issue37976@roundup.psfhosted.org>
2019-08-29 10:30:10sir-sigurdlinkissue37976 messages
2019-08-29 10:30:09sir-sigurdcreate