This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author musically_ut
Recipients musically_ut
Date 2017-05-07.19:57:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494187046.46.0.90330515352.issue30302@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, the default implementation of datetime.datetime.__repr__ (the default output string produced at the console/IPython) gives a rather cryptic output:

from datetime import datetime as D
D.fromtimestamp(1390953543.1) - D.fromtimestamp(1121871596)
# datetime.timedelta(3114, 28747, 100000)

For the uninitiated, it is not obvious that the numeric values here are `days`, `seconds` and `microsecond` respectively.

Would there be any pushback against changing this to:

# datetime.timedelta(days=3114, seconds=28747, microseconds=100000)

?
History
Date User Action Args
2017-05-07 19:57:27musically_utsetrecipients: + musically_ut
2017-05-07 19:57:26musically_utsetmessageid: <1494187046.46.0.90330515352.issue30302@psf.upfronthosting.co.za>
2017-05-07 19:57:26musically_utlinkissue30302 messages
2017-05-07 19:57:25musically_utcreate