Message339612
This might cause a MemoryError when the __length_hint__ of the source returns a too large value, even when the actual size of the comprehension is smaller, e.g.:
[x**2 for x in range(LARGE_VALUE) if is_prime(x)]
See also issue28940 |
|
Date |
User |
Action |
Args |
2019-04-08 11:02:52 | ronaldoussoren | set | recipients:
+ ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall, anthony shaw |
2019-04-08 11:02:52 | ronaldoussoren | set | messageid: <1554721372.69.0.65170307617.issue36551@roundup.psfhosted.org> |
2019-04-08 11:02:52 | ronaldoussoren | link | issue36551 messages |
2019-04-08 11:02:52 | ronaldoussoren | create | |
|