YADTR (Yet Another DateTime Rant)

Roy Smith roy at panix.com
Thu Mar 27 13:52:24 CET 2014

> On Thu, Mar 27, 2014 at 9:22 PM, Johannes Bauer <dfnsonfsduifb at gmx.de> wrote:
> > Besides, there's an infinite amount of (braindead) timedelta string
> > representations. For your -30 hours, it is perfectly legal to say
> >
> > 123 days, -2982 hours
> >
> > Yet Python doesn't (but chooses an equally braindead representation).

In article <mailman.8613.1395917059.18130.python-list at python.org>,
 Chris Angelico <rosuav at gmail.com> wrote:
> It's not "equally braindead", it follows a simple and logical rule:
> Only the day portion is negative.

Simple and logical, yes.  But also entirely braindead.

> That might not be perfectly suited to all situations

Give ma a real-life situation where you would want such behavior.

> What you propose is completely arbitrary, and yes
> it WOULD be braindead to have str() return that

Chris, I believe you need to have your sarcasm detection circuitry 
recalibrated :-)

More information about the Python-list mailing list