Staging
v0.8.1
https://github.com/python/cpython
Revision 143672cf028740fc549e532c049559c522930c95 authored by Miss Islington (bot) on 13 July 2019, 13:59:37 UTC, committed by GitHub on 13 July 2019, 13:59:37 UTC

Returns NotImplemented for timedelta and time in __eq__ for different types in Python implementation, which matches the C implementation.

This also adds tests to enforce that these objects will fall back to the right hand side's __eq__ and/or __ne__ implementation.

bpo-37579
(cherry picked from commit e6b46aafad3427463d6264a68824df4797e682f1)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
1 parent 5da83b4
History
Tip revision: 143672cf028740fc549e532c049559c522930c95 authored by Miss Islington (bot) on 13 July 2019, 13:59:37 UTC
bpo-37579: Improve equality behavior for pure Python datetime and time (GH-14726)
Tip revision: 143672c
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
m4
.gitattributes -rw-r--r-- 1.8 KB
.gitignore -rw-r--r-- 1.6 KB
.travis.yml -rw-r--r-- 8.5 KB
CODE_OF_CONDUCT.md -rw-r--r-- 630 bytes
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 65.4 KB
README.rst -rw-r--r-- 9.8 KB
aclocal.m4 -rw-r--r-- 13.1 KB
config.guess -rwxr-xr-x 43.1 KB
config.sub -rwxr-xr-x 35.4 KB
configure -rwxr-xr-x 491.5 KB
configure.ac -rw-r--r-- 162.0 KB
install-sh -rwxr-xr-x 15.0 KB
pyconfig.h.in -rw-r--r-- 44.1 KB
setup.py -rw-r--r-- 101.0 KB

README.rst

back to top