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 remi.lapeyre
Recipients nougmanoff, remi.lapeyre
Date 2020-05-28.13:05:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1590671153.99.0.820013297452.issue40806@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2020-05-28 13:05:54remi.lapeyresetrecipients: + remi.lapeyre, nougmanoff
2020-05-28 13:05:53remi.lapeyresetmessageid: <1590671153.99.0.820013297452.issue40806@roundup.psfhosted.org>
2020-05-28 13:05:53remi.lapeyrelinkissue40806 messages
2020-05-28 13:05:53remi.lapeyrecreate