- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| 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: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 |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
