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 pitrou
Recipients amaury.forgeotdarc, andersk, eric.araujo, georg.brandl, pitrou, r.david.murray, rhettinger, ysj.ray
Date 2010-07-22.17:33:33
SpamBayes Score 0.020801987
Marked as misclassified No
Message-id <1279820015.44.0.798479302915.issue8376@psf.upfronthosting.co.za>
In-reply-to
Content
At least equally useful would be the mention that __iter__ can be a generator, eliminating the need for intermediate objects:

>>> class C:
...     def __iter__(self):
...         yield 1
...         yield 2
... 
>>> list(C())
[1, 2]
History
Date User Action Args
2010-07-22 17:33:35pitrousetrecipients: + pitrou, georg.brandl, rhettinger, amaury.forgeotdarc, eric.araujo, r.david.murray, ysj.ray, andersk
2010-07-22 17:33:35pitrousetmessageid: <1279820015.44.0.798479302915.issue8376@psf.upfronthosting.co.za>
2010-07-22 17:33:33pitroulinkissue8376 messages
2010-07-22 17:33:33pitroucreate