Markus Wallerberger added the comment:
> To a person well versed in recursion and in generator chains it makes sense
> but not so much for anyone else.
There I pretty much fundamentally disagree. I find the version in the docs
much more magical in the sense that it builds up &quo
Change by Markus Wallerberger :
--
keywords: +patch
pull_requests: +28804
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30605
___
Python tracker
<https://bugs.python.org/issu
New submission from Markus Wallerberger :
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 pr