]> granicus.if.org Git - python/commit
bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 9 Sep 2019 09:07:51 +0000 (02:07 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 09:07:51 +0000 (02:07 -0700)
commit6e3809c7ce9fbee11c3a3f89dd7e89829b7581ac
treead8adb7fb050731170e08732bf263331cec1fe84
parentcc1bdf91d53b1a4751be84ef607e24e69a327a9b
bpo-34410: Fix a crash in the tee iterator when re-enter it. (GH-15625)

RuntimeError is now raised in this case.
(cherry picked from commit 526a01467b3277f9fcf7f91e66c23321caa1245d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Doc/library/itertools.rst
Lib/test/test_itertools.py
Misc/NEWS.d/next/Library/2019-08-31-01-52-59.bpo-34410.7KbWZQ.rst [new file with mode: 0644]
Modules/itertoolsmodule.c