[issue7989] Add pure Python implementation of datetime module to CPython

Amaury Forgeot d'Arc report at bugs.python.org
Fri Jul 2 23:23:19 CEST 2010


Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:

> assert daysecondswhole == int(daysecondswhole)  # can't overflow   
> Since int is long in 3.x, this assert does not check anything

Even with 2.5 int(x) cannot overflow, and returns a long when needed!
This assert probably checks that the number has no fractional part.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7989>
_______________________________________


More information about the Python-bugs-list mailing list