Message370203
Hi Ramil, itertools.product() expect its argument to be finite iterables, it needs to keep all their elements in memory anyway at it "cycles around" to produce all possible pairs.
Basically, product(x(1), x(2)) is equivalent to product(tuple(x(1)), tuple(x(2))).
I see that the documentation does not mention that the arguments must be finite, could you open a PR to improve it? |
|
Date |
User |
Action |
Args |
2020-05-28 13:05:54 | remi.lapeyre | set | recipients:
+ remi.lapeyre, nougmanoff |
2020-05-28 13:05:53 | remi.lapeyre | set | messageid: <1590671153.99.0.820013297452.issue40806@roundup.psfhosted.org> |
2020-05-28 13:05:53 | remi.lapeyre | link | issue40806 messages |
2020-05-28 13:05:53 | remi.lapeyre | create | |
|