Author mwallerb
Recipients docs@python, mwallerb
Date 2022-01-14.17:41:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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].
Date User Action Args
2022-01-14 17:41:54mwallerbsetrecipients: + mwallerb, docs@python
2022-01-14 17:41:54mwallerbsetmessageid: <>
2022-01-14 17:41:54mwallerblinkissue46379 messages
2022-01-14 17:41:54mwallerbcreate