[issue40806] itertools.product not lazy
Raymond Hettinger
report at bugs.python.org
Thu May 28 12:50:13 EDT 2020
Raymond Hettinger <raymond.hettinger at gmail.com> added the comment:
Updated the docs to note that inputs are fully consumed before the iterator is run.
FYI, notes on infinite iterable inputs likely belong the FAQs because they aren't specific to product(). Similar effects would be seen with list(x(1)), sorted(x(1)), set(x(1)), tuple(x(1)), etc.
----------
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40806>
_______________________________________
More information about the Python-bugs-list
mailing list