[issue36138] Improve documentation about converting datetime.timedelta to scalars

Nick Coghlan report at bugs.python.org
Sat Mar 16 01:34:12 EDT 2019


Nick Coghlan <ncoghlan at gmail.com> added the comment:

I've merged Yasser's PR (thank you!), but in the review discussion for that, we noticed something else: the `total_seconds()` documentation mentions the floating point dynamic resolution problem, but doesn't mention using `//` or `divmod()` as the fix for that, while the operator table doesn't mention the dynamic resolution problem at all.

So I haven't closed the issue yet, as fixing that feel in-scope for this issue, even though I didn't want to hold up the initial PR for it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36138>
_______________________________________


More information about the Python-bugs-list mailing list