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 mwallerb
Recipients docs@python, mwallerb
Date 2022-01-14.17:41:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642182114.77.0.464829533122.issue46379@roundup.psfhosted.org>
In-reply-to
Content
The reference implementation of itertools.product creates large temporaries, which we need to remind people of at the top of the code block.

However, using generator magic, we don't need to do this and can even simplify the code in the process!  Basically,we iterate over a generator of product(*seq[:-1]), and extend each of the values by every value in seq[-1].
History
Date User Action Args
2022-01-14 17:41:54mwallerbsetrecipients: + mwallerb, docs@python
2022-01-14 17:41:54mwallerbsetmessageid: <1642182114.77.0.464829533122.issue46379@roundup.psfhosted.org>
2022-01-14 17:41:54mwallerblinkissue46379 messages
2022-01-14 17:41:54mwallerbcreate