diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-06-22 08:20:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 08:20:56 (GMT) |
commit | 353c4bab7d103cb66391a83f3c27cd75ae13a754 (patch) | |
tree | 06bdf5a3c053aa3850589b3a9eb555bcfede9e43 /Misc | |
parent | f19ed6b0c77ba3bdaa1d8c304a61f2fa90b5d6ac (diff) | |
download | cpython-353c4bab7d103cb66391a83f3c27cd75ae13a754.zip cpython-353c4bab7d103cb66391a83f3c27cd75ae13a754.tar.gz cpython-353c4bab7d103cb66391a83f3c27cd75ae13a754.tar.bz2 |
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>
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-05-30-14-37-18.bpo-40824.XR3V5s.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-05-30-14-37-18.bpo-40824.XR3V5s.rst b/Misc/NEWS.d/next/Core and Builtins/2020-05-30-14-37-18.bpo-40824.XR3V5s.rst new file mode 100644 index 0000000..73c593c --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-05-30-14-37-18.bpo-40824.XR3V5s.rst @@ -0,0 +1,4 @@ +Unexpected errors in calling the ``__iter__`` method are no longer masked by +``TypeError`` in the :keyword:`in` operator and functions +:func:`~operator.contains`, :func:`~operator.indexOf` and +:func:`~operator.countOf` of the :mod:`operator` module. |