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.11:50:05
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554724205.97.0.250027376036.issue36551@roundup.psfhosted.org>
In-reply-to
Content
> In such case, current behavior works.  And your patch will raise OverflowError.

Try

[x for x in range(2**1000)] 

in a REPL. It doesn’t raise anything, it tries to create a list that will eventually exceed PY_SIZE_MAX, but it only crashes once it reaches that iteration.

This raises an OverflowError instead, the same way:
len(range(2**1000))
raises an OverflowError
History
Date User Action Args
2019-04-08 11:50:05anthony shawsetrecipients: + anthony shaw, ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall
2019-04-08 11:50:05anthony shawsetmessageid: <1554724205.97.0.250027376036.issue36551@roundup.psfhosted.org>
2019-04-08 11:50:05anthony shawlinkissue36551 messages
2019-04-08 11:50:05anthony shawcreate