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 anthony shaw
Recipients Aaron Hall, anthony shaw, methane, ncoghlan, ronaldoussoren, serhiy.storchaka
Date 2019-04-08.12:08:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554725320.3.0.446900352131.issue36551@roundup.psfhosted.org>
In-reply-to
Content
> If your patch uses __length_hint__, it is bug.
iterator will return 2**1000 for __length_hint__, but produce no item
on iteration.

It raises an OverflowError because of the goto
https://github.com/python/cpython/pull/12718/files#diff-7f17c8d8448b7b6f90549035d2147a9fR2493 this could just as easily set size to 0.

I put `goto error` given the opportunity to handle an expected fault gracefully.
History
Date User Action Args
2019-04-08 12:08:40anthony shawsetrecipients: + anthony shaw, ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall
2019-04-08 12:08:40anthony shawsetmessageid: <1554725320.3.0.446900352131.issue36551@roundup.psfhosted.org>
2019-04-08 12:08:40anthony shawlinkissue36551 messages
2019-04-08 12:08:40anthony shawcreate