[issue7342] str(datetime_obj) doesn't include microseconds if their value is 0

Antoine Pitrou report at bugs.python.org
Tue Nov 17 23:08:54 CET 2009


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

Yes, there is a valid reason. You certainly don't want spurious
microseconds to be displayed when a datetime object was constructed from
a second-precise source (e.g. parsing e-mail headers).

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list