]> granicus.if.org Git - python/commit
bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904)
authorSerhiy Storchaka <storchaka@gmail.com>
Sun, 4 Aug 2019 11:12:48 +0000 (14:12 +0300)
committerGitHub <noreply@github.com>
Sun, 4 Aug 2019 11:12:48 +0000 (14:12 +0300)
commit18b711c5a7f90d88fb74748f18fa8ef49d8486c7
treed04ab59ccadbade80f8999c921dd3a19b62a9cc9
parent17e52649c0e7e9389f1cc2444a53f059e24e6bca
bpo-37648: Fixed minor inconsistency in some __contains__. (GH-14904)

The collection's item is now always at the left and
the needle is on the right of ==.
12 files changed:
Doc/library/test.rst
Lib/test/list_tests.py
Lib/test/seq_tests.py
Lib/test/support/__init__.py
Lib/test/test_iter.py
Misc/NEWS.d/next/Core and Builtins/2019-07-22-11-05-05.bpo-37648.6TY2L-.rst [new file with mode: 0644]
Modules/_asynciomodule.c
Modules/_ssl.c
Objects/abstract.c
Objects/dictobject.c
Objects/listobject.c
Objects/tupleobject.c