]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 22 Jun 2020 07:43:35 +0000 (10:43 +0300)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2020 07:43:35 +0000 (10:43 +0300)
commitcafe1b6e9d3594a34aba50e872d4198296ffaadf
tree4508274bc56f2a9fe7caef1f61dbdae524a157be
parent4901ea952691ad70aae21cfe04b6bd363b5a6aff
bpo-40824: Do not mask errors in __iter__ in "in" and the operator module. (GH-20537)

Unexpected errors in calling the __iter__ method are no longer
masked by TypeError in the "in" operator and functions
operator.contains(), operator.indexOf() and operator.countOf().
Lib/test/test_iter.py
Lib/test/test_operator.py
Misc/NEWS.d/next/Core and Builtins/2020-05-30-14-37-18.bpo-40824.XR3V5s.rst [new file with mode: 0644]
Objects/abstract.c