]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40636: PEP 618: add strict parameter to zip() (GH-20921)
authorGuido van Rossum <guido@python.org>
Fri, 19 Jun 2020 10:16:57 +0000 (03:16 -0700)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 10:16:57 +0000 (12:16 +0200)
commit310f6aa7db8dd48952ed718111ce0f016b1c8ef9
tree6db8312a4d970336f2fbff579eba7f3abb95bc1e
parent37bb2895561d3e63a631f10875567b4e33b30c07
bpo-40636: PEP 618: add strict parameter to zip() (GH-20921)

zip() now supports PEP 618's strict parameter, which raises a
ValueError if the arguments are exhausted at different lengths.
Patch by Brandt Bucher.

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
Co-authored-by: Ram Rachum <ram@rachum.com>
Lib/test/test_builtin.py
Misc/NEWS.d/next/Core and Builtins/2020-06-17-10-27-17.bpo-40636.MYaCIe.rst [new file with mode: 0644]
Python/bltinmodule.c