[Python-Dev] Change the repr for datetime.timedelta (was Re: Asynchronous context manager in a typical network server)

Tim Peters tim.peters at gmail.com
Sun Dec 20 22:35:06 EST 2015


[Tim]
>> But I wouldn't change repr() - the internal representation is fully
>> documented, and it's appropriate for repr() to reflect documented
>> internals as directly as possible.

[Alex]
> Note that in the case of float repr, the consideration of user convenience
> did win over "reflect documented internals as directly as possible."

?  Nothing is documented about float internals, beyond "whatever a
platform C double is" in CPython.


More information about the Python-Dev mailing list