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 rhettinger
Recipients andersk, eric.araujo, georg.brandl, r.david.murray, rhettinger, ysj.ray
Date 2010-04-12.18:07:57
SpamBayes Score 5.129262e-07
Marked as misclassified No
Message-id <1271095680.46.0.103794854952.issue8376@psf.upfronthosting.co.za>
In-reply-to
Content
I think the docs are fine as-is.  At that point in the tutorial, we're trying to teach what the iterator protocol is.

The considerations of what makes a good design can be discussed elsewhere.  It is not a one-liner.  For example, files are self iterators but lists are not -- there are good reasons for either choice.  Explaining those design choices is not a good way to *introduce* the iterator protocol.

Recommend closing this report.
History
Date User Action Args
2010-04-12 18:08:00rhettingersetrecipients: + rhettinger, georg.brandl, eric.araujo, r.david.murray, ysj.ray, andersk
2010-04-12 18:08:00rhettingersetmessageid: <1271095680.46.0.103794854952.issue8376@psf.upfronthosting.co.za>
2010-04-12 18:07:58rhettingerlinkissue8376 messages
2010-04-12 18:07:57rhettingercreate