Message339620
> 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.:
The current implementation of list comprehensions raise neither a memoryerror or overflow error. They will consume all available memory and crash the interpreter.
This patch raises an OverflowError before execution instead of just looping until memory heap exhaustion |
|
Date |
User |
Action |
Args |
2019-04-08 11:36:57 | anthony shaw | set | recipients:
+ anthony shaw, ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall |
2019-04-08 11:36:57 | anthony shaw | set | messageid: <1554723417.93.0.539341851135.issue36551@roundup.psfhosted.org> |
2019-04-08 11:36:57 | anthony shaw | link | issue36551 messages |
2019-04-08 11:36:57 | anthony shaw | create | |
|