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 serhiy.storchaka
Recipients rhettinger, serhiy.storchaka
Date 2016-07-02.19:53:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1467489234.07.0.837465555055.issue27443@psf.upfronthosting.co.za>
In-reply-to
Content
>>> ba = bytearray(b'ab')
>>> it = iter(ba)
>>> next(it)
97
>>> ba.clear()
>>> list(it)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: __length_hint__() should return >= 0

Proposed patch fixes this issue.
History
Date User Action Args
2016-07-02 19:53:54serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger
2016-07-02 19:53:54serhiy.storchakasetmessageid: <1467489234.07.0.837465555055.issue27443@psf.upfronthosting.co.za>
2016-07-02 19:53:54serhiy.storchakalinkissue27443 messages
2016-07-02 19:53:53serhiy.storchakacreate