]> granicus.if.org Git - python/commit
By default, != returns the opposite of ==, unless the latter returns
authorGuido van Rossum <guido@python.org>
Tue, 27 Mar 2007 22:37:34 +0000 (22:37 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 27 Mar 2007 22:37:34 +0000 (22:37 +0000)
commite27dc7230845aa341d9a0bf323fa14912713cf33
tree80e5451f5dac1bc5ac01ee3b70eaf9aff0461f31
parenta4335b1e6bc357fb6a3d54298e74a1d957028bc3
By default, != returns the opposite of ==, unless the latter returns
NotImplemented.

(Is this worth backporting to 2.6?  It seems so useful...!)
Lib/test/test_compare.py
Misc/NEWS
Objects/typeobject.c