]> 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)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 22 Jun 2020 08:20:56 +0000 (01:20 -0700)
committerGitHub <noreply@github.com>
Mon, 22 Jun 2020 08:20:56 +0000 (01:20 -0700)
commit353c4bab7d103cb66391a83f3c27cd75ae13a754
tree06bdf5a3c053aa3850589b3a9eb555bcfede9e43
parentf19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac
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().
(cherry picked from commit cafe1b6e9d3594a34aba50e872d4198296ffaadf)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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