]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:11:22 +0000 (02:11 -0700)
committerGitHub <noreply@github.com>
Mon, 9 Sep 2019 09:11:22 +0000 (02:11 -0700)
commit5190b7193c184268d5c8a9440b3a5a8bcd84a23e
treed9345938893c41289e2eddbe4a99e27a44a7eb0c
parent021e5db20bc19d678a5b94247a5cdcf689eff006
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