Message 370203 - Python tracker
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?