- 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 | r.david.murray |
|---|---|
| Recipients | Zero, docs@python, r.david.murray, terry.reedy, veky |
| Date | 2017-07-17.12:51:48 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1500295908.3.0.045037365791.issue18558@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
No, refusing to guess in this case is to believe the class's declaration that it is an iterable if (and only if) it defines __iter__, which is the modern definition of iterable. If that doesn't work when the object is iterated, that's a bug in the class claiming to be an iterable when it isn't. The confusion here is the existence of the older iteration protocol. As you say, the documentation can use some improvement. Eventually someone will submit a proposal in the form of a PR and we can hammer out the exact wording. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-07-17 12:51:48 | r.david.murray | set | recipients: + r.david.murray, terry.reedy, Zero, docs@python, veky |
| 2017-07-17 12:51:48 | r.david.murray | set | messageid: <1500295908.3.0.045037365791.issue18558@psf.upfronthosting.co.za> |
| 2017-07-17 12:51:48 | r.david.murray | link | issue18558 messages |
| 2017-07-17 12:51:48 | r.david.murray | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
