]> granicus.if.org Git - python/commit
bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 8 Aug 2019 05:42:54 +0000 (08:42 +0300)
committerGitHub <noreply@github.com>
Thu, 8 Aug 2019 05:42:54 +0000 (08:42 +0300)
commit662db125cddbca1db68116c547c290eb3943d98e
tree06151487dbe4493ef173dd8cc378f4b6cf5c0e4a
parent4c69be22df3852f17873a74d015528d9a8ae92d6
bpo-37685: Fixed __eq__, __lt__ etc implementations in some classes. (GH-14952)

They now return NotImplemented for unsupported type of the other operand.
23 files changed:
Lib/asyncio/events.py
Lib/distutils/tests/test_version.py
Lib/distutils/version.py
Lib/email/headerregistry.py
Lib/importlib/_bootstrap.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_email/test_headerregistry.py
Lib/test/test_traceback.py
Lib/test/test_weakref.py
Lib/test/test_xmlrpc.py
Lib/tkinter/__init__.py
Lib/tkinter/font.py
Lib/tkinter/test/test_tkinter/test_font.py
Lib/tkinter/test/test_tkinter/test_variables.py
Lib/traceback.py
Lib/tracemalloc.py
Lib/unittest/mock.py
Lib/unittest/test/testmock/testmock.py
Lib/weakref.py
Lib/xmlrpc/client.py
Misc/NEWS.d/next/Library/2019-07-26-00-12-29.bpo-37685.TqckMZ.rst [new file with mode: 0644]
Python/importlib.h
Tools/pynche/PyncheWidget.py