https://github.com/python/cpython
Revision 7a0d964afb41bde846771c81ba746238339cdd8c authored by Miss Islington (bot) on 20 November 2018, 19:02:49 UTC, committed by GitHub on 20 November 2018, 19:02:49 UTC

Fixes assertion failures in _datetimemodule.c
introduced in the previous fix (see bpo-31752).

Rather of trying to handle an int subclass as exact int,
let it to use overridden special methods, but check the
result of divmod().
(cherry picked from commit 3ec0f495163da3b7a15deb2805cec48aed432f58)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
1 parent dac5124
History
Tip revision: 7a0d964afb41bde846771c81ba746238339cdd8c authored by Miss Islington (bot) on 20 November 2018, 19:02:49 UTC
bpo-35021: Fix assertion failures in _datetimemodule.c. (GH-10039)
Tip revision: 7a0d964
File Mode Size
.azure-pipelines
.github
Doc
Grammar
Include
Lib
Mac
Misc
Modules
Objects
PC
PCbuild
Parser
Programs
Python
Tools
.bzrignore -rw-r--r-- 582 bytes
.gitattributes -rw-r--r-- 1.6 KB
.gitignore -rw-r--r-- 1.4 KB
.hgignore -rw-r--r-- 1.3 KB
.travis.yml -rw-r--r-- 5.2 KB
LICENSE -rw-r--r-- 12.5 KB
Makefile.pre.in -rw-r--r-- 59.8 KB
README.rst -rw-r--r-- 9.8 KB
aclocal.m4 -rw-r--r-- 10.7 KB
config.guess -rwxr-xr-x 43.2 KB
config.sub -rwxr-xr-x 35.7 KB
configure -rwxr-xr-x 481.8 KB
configure.ac -rw-r--r-- 161.6 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 41.1 KB
setup.py -rw-r--r-- 102.1 KB

README.rst

back to top