Author skip.montanaro
Recipients brett.cannon, skip.montanaro, tim.peters, tungwaiyip
Date 2007-09-02.03:37:49
SpamBayes Score 0.270829
Marked as misclassified No
Message-id <1188704270.35.0.868744232726.issue1074462@psf.upfronthosting.co.za>
In-reply-to
Content
I'm going to offer one more argument here, then close the ticket.
(Tim already told you the behavior wasn't going to change.)
str() is a convenience function intended to give conveniently
human-readable output.  It's not intended to be a one-size-fits-
all routine.  Humans are used to not seeing fractions of a second
in times when there are none.  In those situations where you
unambiguously need microseconds displayed, use something like
this:

    >>> str(dt.replace(microsecond=0)) + ".%06d" % dt.microsecond
    '2007-09-01 22:30:36.000032'
    >>> dt.strftime("%H:%M:%S") + ".%06d" % dt.microsecond
    '22:30:36.000032'
History
Date User Action Args
2007-09-02 03:37:50skip.montanarosetspambayes_score: 0.270829 -> 0.270829
recipients: + skip.montanaro, tim.peters, brett.cannon, tungwaiyip
2007-09-02 03:37:50skip.montanarosetspambayes_score: 0.270829 -> 0.270829
messageid: <1188704270.35.0.868744232726.issue1074462@psf.upfronthosting.co.za>
2007-09-02 03:37:50skip.montanarolinkissue1074462 messages
2007-09-02 03:37:49skip.montanarocreate