[New-bugs-announce] [issue40806] itertools.product not lazy

Ramil Nugmanov report at bugs.python.org
Thu May 28 08:55:46 EDT 2020


New submission from Ramil Nugmanov <nougmanoff at hotmail.com>:

def x(y):
    while True:
        yield y

p = product(x(1), x(2))

next(p)  # this string will never be reached.

----------
components: Library (Lib)
messages: 370201
nosy: nougmanoff
priority: normal
severity: normal
status: open
title: itertools.product not lazy
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40806>
_______________________________________


More information about the New-bugs-announce mailing list