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 alexandre.vassalotti
Recipients alexandre.vassalotti
Date 2007-12-04.05:43:55
SpamBayes Score 0.1424648
Marked as misclassified No
Message-id <1196747037.55.0.351183859041.issue1553@psf.upfronthosting.co.za>
In-reply-to
Content
If an iterator with a __length_hint__ method that returns a negative
integer is passed to list(), a SystemError is raised.

>>> class A:
...     def __iter__(self):
...         return self
...     def __length_hint__(self):
...         return -1
... 
>>> list(A())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
SystemError: NULL result without error in PyObject_Call
History
Date User Action Args
2007-12-04 05:43:58alexandre.vassalottisetspambayes_score: 0.142465 -> 0.1424648
recipients: + alexandre.vassalotti
2007-12-04 05:43:57alexandre.vassalottisetspambayes_score: 0.142465 -> 0.142465
messageid: <1196747037.55.0.351183859041.issue1553@psf.upfronthosting.co.za>
2007-12-04 05:43:57alexandre.vassalottilinkissue1553 messages
2007-12-04 05:43:56alexandre.vassalotticreate