[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

STINNER Victor report at bugs.python.org
Tue Mar 1 16:16:26 EST 2016


STINNER Victor added the comment:

> Given that we're talking about what to do when we're suppressing the usecs I don't think roundtripping matters. :-)

I changed many times how Python rounds nanoseconds in the private PyTime API, and I got a bug report because of that! => issue #23517.

By the way, I wrote an article to explain the history the private PyTime API, especially changes on rounding ;-) https://haypo.github.io/pytime.html

----------

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


More information about the Python-bugs-list mailing list