Message193723
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 |
|
| Date |
User |
Action |
Args |
| 2013-07-25 23:57:32 | Zero | set | recipients:
+ Zero |
| 2013-07-25 23:57:31 | Zero | set | messageid: <1374796651.89.0.668716719647.issue18558@psf.upfronthosting.co.za> |
| 2013-07-25 23:57:31 | Zero | link | issue18558 messages |
| 2013-07-25 23:57:31 | Zero | create | |
|