Message410573
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:54 | mwallerb | set | recipients:
+ mwallerb, docs@python |
2022-01-14 17:41:54 | mwallerb | set | messageid: <1642182114.77.0.464829533122.issue46379@roundup.psfhosted.org> |
2022-01-14 17:41:54 | mwallerb | link | issue46379 messages |
2022-01-14 17:41:54 | mwallerb | create | |
|