[New-bugs-announce] [issue40230] Itertools.product() Out of Memory Errors

Henry Carscadden report at bugs.python.org
Wed Apr 8 16:12:06 EDT 2020


New submission from Henry Carscadden <hlc5v at virginia.edu>:

The product method in itertools provides an implementation of the Cartesian product that when run on with many arguments quickly gives out of memory errors. The current implementation creates a lot of unnecessary lists in this situation. A more appropriate implementation uses dynamic programming to avoid these out of memory issues.

----------
components: Distutils
messages: 366005
nosy: Henry Carscadden, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Itertools.product() Out of Memory Errors
type: resource usage
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40230>
_______________________________________


More information about the New-bugs-announce mailing list