<div dir="ltr"><br>On Fri, Mar 28, 2014 at 7:03 AM, Steven D'Aprano <<a href="mailto:steve@pearwood.info">steve@pearwood.info</a>> wrote:<div><br></div><div><span style="font-family:arial,sans-serif;font-size:12.666666984558105px">> py> str(timedelta(0, -1))</span><br style="font-family:arial,sans-serif;font-size:12.666666984558105px">
<span style="font-family:arial,sans-serif;font-size:12.666666984558105px">> '-1 day, 23:59:59'</span><br>> ..<br>> Does anyone remember the rationale for this behaviour?<br><br>I don't recall any better rationale than what I wrote in the docs: "String representations of timedelta objects are normalized similarly to their internal representation."<div>
<br>> Is it open to debate or is it now cast in stone?</div><div><br></div><div>I think the barrier for changing str() is lower than that for changing repr(), but I would be against any changes in this area.  (I may have had a different view if ISO 8601 syntax for timedeltas was not so ugly. :-)<br>
<br></div></div></div>