[issue5788] datetime.timedelta is inconvenient to use...

Antoine Pitrou report at bugs.python.org
Sun Apr 19 01:49:48 CEST 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

The addition looks quite legitimate to me.
The only thing is that it may be better as a method (total_seconds())
rather than an attribute, given the other APIs in the datetime module.
Also, the patch lacks some unit tests.

----------
nosy: +pitrou
versions: +Python 2.7 -Python 3.0

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


More information about the Python-bugs-list mailing list