YADTR (Yet Another DateTime Rant)

Antoon Pardon antoon.pardon at rece.vub.ac.be
Thu Mar 27 10:12:31 EDT 2014


On 27-03-14 13:52, Roy Smith wrote:
>> 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 you don't have a use for it and don't like it doesn't
make it brain dead.
 

>> That might not be perfectly suited to all situations
> Give ma a real-life situation where you would want such behavior.

What good would that do? The fact that someone else could
give a real-life situation where they wanted that, wouldn't
mean that you would recognize it as a situation where you
wanted it, and so you could still call it brain dead.

I don't recall specifics, but I do remember multiple times
where I was working with a structure that consisted of
a whole part and a fracture part where I found it useful
to have the fracture part always positive and displayed
as such.

Your background is obviously different and you don't like it.
Fine, that doesn't make it brain dead.

-- 
Antoon Pardon




More information about the Python-list mailing list