Message95532
If __str__ is supposed to produce "nice" output, the microsecond shouldn't
be visible at all imho (special cases are not special enough to break the
rules).
If the date/time object is read by a human he probably doesn't care of
the microseconds anyway, if it's parsed by a machine the '0 microseconds'
situation must be special-cased to avoid failures like the one mentioned in
the first message.
The fact that the documentation of datetime.isotime() mentions it is not
enough if the user doesn't know that it's used by str(), so a note should be
added to the doc.
I don't know if/how the situation can be fixed though. |
|
Date |
User |
Action |
Args |
2009-11-20 07:08:53 | ezio.melotti | set | recipients:
+ ezio.melotti, tim.peters, doerwalter, georg.brandl, pitrou, r.david.murray |
2009-11-20 07:08:52 | ezio.melotti | set | messageid: <1258700932.72.0.72710143105.issue7342@psf.upfronthosting.co.za> |
2009-11-20 07:08:51 | ezio.melotti | link | issue7342 messages |
2009-11-20 07:08:50 | ezio.melotti | create | |
|