- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
Message339626
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 | methane |
|---|---|
| Recipients | Aaron Hall, anthony shaw, methane, ncoghlan, ronaldoussoren, serhiy.storchaka |
| Date | 2019-04-08.11:54:52 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <CAEfz+TwhQhw-+wrq7+WVN_tWsDnouZJ2w8d+-LRLc_519jQwGw@mail.gmail.com> |
| In-reply-to | <1554724205.97.0.250027376036.issue36551@roundup.psfhosted.org> |
| Content | |
|---|---|
> 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. It is expected behavior. > This raises an OverflowError instead, the same way: > len(range(2**1000)) > raises an OverflowError If your patch uses __length_hint__, it is bug. iterator will return 2**1000 for __length_hint__, but produce no item on iteration. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2019-04-08 11:54:52 | methane | set | recipients: + methane, ronaldoussoren, ncoghlan, serhiy.storchaka, Aaron Hall, anthony shaw |
| 2019-04-08 11:54:52 | methane | link | issue36551 messages |
| 2019-04-08 11:54:52 | methane | create | |

