[Python-ideas] Making datetime __str__ and isoformat more consistent

Terry Reedy tjreedy at udel.edu
Fri Nov 1 23:16:07 CET 2013


On 11/1/2013 4:29 PM, Skip Montanaro wrote:
> Thanks for the response. I relented after seeing comments from Guido
> and Tim. It is highly unlikely that I'd be able to sway the major
> devs. Modifying __str__ is a complete non-starter, and Guido pushed
> back a bit on the notion of making isoformat() include microseconds.

Having repr() always include microseconds makes more sense to me. I have 
no idea what it does since it was not discussed.

> (He suggested maybe adding an "include microseconds" flag, which I
> think would be as bad as the current behavior.

Why? Seems like a good solution to me.

-- 
Terry Jan Reedy



More information about the Python-ideas mailing list