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 kmtracey
Recipients kmtracey, rhettinger, stevea_zope
Date 2008-07-18.18:35:20
SpamBayes Score 0.0061046034
Marked as misclassified No
Message-id <1216406122.98.0.954292591281.issue1242657@psf.upfronthosting.co.za>
In-reply-to
Content
This behavior has reappeared in the 2.6 beta releases:

Python 2.6b2 (r26b2:65082, Jul 18 2008, 13:36:54) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> class F(object):
...     def __iter__(self):
...         yield 23
...     def __len__(self):
...         print 'len called, raising KeyboardInterrupt'
...         raise KeyboardInterrupt
... 
>>> f = F()
>>> list(f)
len called, raising KeyboardInterrupt
[23]

Should a new bug be opened for this?  (I can't find one but I'm not too
experienced searchign Python's bug tracker.)
History
Date User Action Args
2008-07-18 18:35:23kmtraceysetspambayes_score: 0.0061046 -> 0.0061046034
recipients: + kmtracey, rhettinger, stevea_zope
2008-07-18 18:35:23kmtraceysetspambayes_score: 0.0061046 -> 0.0061046
messageid: <1216406122.98.0.954292591281.issue1242657@psf.upfronthosting.co.za>
2008-07-18 18:35:22kmtraceylinkissue1242657 messages
2008-07-18 18:35:20kmtraceycreate