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 ronaldoussoren
Recipients Aaron Hall, anthony shaw, methane, ncoghlan, ronaldoussoren, serhiy.storchaka
Date 2019-04-08.11:02:52
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1554721372.69.0.65170307617.issue36551@roundup.psfhosted.org>
In-reply-to
Content
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
History
Date User Action Args
2019-04-08 11:02:52ronaldoussorensetrecipients: + ronaldoussoren, ncoghlan, methane, serhiy.storchaka, Aaron Hall, anthony shaw
2019-04-08 11:02:52ronaldoussorensetmessageid: <1554721372.69.0.65170307617.issue36551@roundup.psfhosted.org>
2019-04-08 11:02:52ronaldoussorenlinkissue36551 messages
2019-04-08 11:02:52ronaldoussorencreate