Author Zero
Recipients Zero
Date 2013-07-25.23:57:31
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374796651.89.0.668716719647.issue18558@psf.upfronthosting.co.za>
In-reply-to
Content
The following interactive session shows that iterables are not detected properly by the `collections.abc.Iterable` class.

    >>> class IsIterable:
        def __init__(self, data):
            self.data = data
        def __getitem__(self, key):
            return self.data[key]

    >>> is_iterable = IsIterable(range(5))
    >>> for value in is_iterable:
        value

        
    0
    1
    2
    3
    4
    >>> from collections.abc import Iterable
    >>> isinstance(is_iterable, Iterable)
    False
History
Date User Action Args
2013-07-25 23:57:32Zerosetrecipients: + Zero
2013-07-25 23:57:31Zerosetmessageid: <1374796651.89.0.668716719647.issue18558@psf.upfronthosting.co.za>
2013-07-25 23:57:31Zerolinkissue18558 messages
2013-07-25 23:57:31Zerocreate