Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.133 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.74; '*S*': 0.00; 'received:134': 0.05; 'string': 0.09; 'negative.': 0.09; 'python': 0.11; "wouldn't": 0.14; 'logical,': 0.16; 'roy': 0.16; 'wrote:': 0.18; 'obviously': 0.18; '(but': 0.19; 'thu,': 0.19; '>>>': 0.22; 'portion': 0.22; 'header:User-Agent:1': 0.23; 'days,': 0.24; 'hours,': 0.24; 'logical': 0.24; 'recognize': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "doesn't": 0.30; 'fine,': 0.31; 'follows': 0.31; 'such.': 0.31; 'yes.': 0.31; 'entirely': 0.33; 'could': 0.34; 'subject: (': 0.35; 'but': 0.35; 'useful': 0.36; 'positive': 0.37; 'to:addr:python-list': 0.38; 'fact': 0.38; 'pm,': 0.38; 'that,': 0.38; 'structure': 0.39; 'to:addr:python.org': 0.39; 'simple': 0.61; 'times': 0.62; 'such': 0.63; 'different': 0.65; 'situation': 0.65; 'hours': 0.66; 'mar': 0.68; 'brain': 0.68; 'smith': 0.68; 'legal': 0.71; 'day': 0.76; 'article': 0.77; 'consisted': 0.84; 'pardon': 0.84; 'real-life': 0.84; 'besides,': 0.93; 'suited': 0.93 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEADkxNFOGuA9G/2dsb2JhbABZhyK/VYExgxkBAQEDASNVEQsYAgIFFgsCAgkDAgECAQ82EwYCAhWHTAMJCK4cmxQNV4ZxF4Epiy2CJBaCWYFJBJZggW2GNoY0hUqDLw Date: Thu, 27 Mar 2014 15:12:31 +0100 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Icedove/24.3.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: YADTR (Yet Another DateTime Rant) References: <53336df8$0$29994$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1395929561 news.xs4all.nl 2943 [2001:888:2000:d::a6]:38445 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69192 On 27-03-14 13:52, Roy Smith wrote: >> On Thu, Mar 27, 2014 at 9:22 PM, Johannes Bauer 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 , > Chris Angelico 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