Path: csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail From: "Martin A. Brown" Newsgroups: comp.lang.python Subject: Re: Set type for datetime intervals Date: Wed, 6 Apr 2016 06:29:42 -0700 Lines: 28 Message-ID: References: <56FE0625.5030901@shopzeus.com> <5704A9BD.6070503@shopzeus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8BIT X-Trace: news.uni-berlin.de rfAQGf1a3bd+HOO8gVFHsQaUNepOqrJgkIkN1pLUOVTw== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url:pypi': 0.03; 'nicely': 0.07; 'cc:addr:python-list': 0.09; ':-)': 0.12; 'applaud': 0.16; 'created.': 0.16; 'from:addr:martin': 0.16; 'morning,': 0.16; 'posted,': 0.16; 'pypi.': 0.16; 'received:hsd1.or.comcast.net': 0.16; 'received:io': 0.16; 'received:or.comcast.net': 0.16; 'received:psf.io': 0.16; 'subject:type': 0.16; 'module,': 0.18; 'library': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'handles': 0.20; 'posted': 0.21; 'martin': 0.22; 'header:In-Reply- To:1': 0.24; 'discussion': 0.24; 'module': 0.25; 'received:24': 0.28; 'charset:iso-8859-15': 0.28; 'occurred': 0.29; "i'm": 0.30; 'certainly': 0.30; 'checked': 0.31; 'posting': 0.32; 'help,': 0.32; 'url:python': 0.33; 'received:comcast.net': 0.33; "i'll": 0.33; 'could': 0.35; 'quite': 0.35; 'something': 0.35; 'problem.': 0.35; 'but': 0.36; 'there': 0.36; 'url:org': 0.36; 'subject:: ': 0.37; 'list.': 0.37; 'late': 0.38; 'delete': 0.38; 'mailing': 0.38; 'some': 0.40; 'your': 0.60; 'received:network': 0.61; 'skip:u 10': 0.61; 'managing': 0.66; 'ranges': 0.76; 'day!': 0.83; 'crafted': 0.84; 'stimulated': 0.84; 'glad': 0.87; 'subject:Set': 0.91 X-X-Sender: mabrown@macron.wonderfrog.net In-Reply-To: <5704A9BD.6070503@shopzeus.com> X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <56FE0625.5030901@shopzeus.com> <5704A9BD.6070503@shopzeus.com> Xref: csiph.com comp.lang.python:106576 >> Sorry to be late to the party--I applaud that you have already >> crafted something to attack your problem. When you first posted, >> there was a library that was tickling my memory, but I could not >> remember its (simple) name. It occurred to me this morning, after >> you posted your new library: >> >> https://pypi.python.org/pypi/intervaltree >> >> This handles overlapping ranges nicely and provides some tools for >> managing them. Before posting this, I checked that it works with >> datetime types, and, unsurprisingly, it does. > >Thank you! It is so much better than the one I have created. >Possibly I'll delete my own module from pypi. :-) I'm glad to have been able to help, László. And, even if you don't delete your new module, you have certainly stimulated quite a discussion on the mailing list. Best regards and have a good day! -Martin -- Martin A. Brown http://linux-ip.net/