Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.010 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'url:pypi': 0.03; 'subject:ANN': 0.07; 'subject:released': 0.07; 'variant': 0.07; 'parameter.': 0.09; 'slices': 0.09; 'url:github': 0.09; 'index': 0.13; 'argument': 0.15; 'value.': 0.15; '0.9.6': 0.16; 'iterator': 0.16; 'iterator,': 0.16; 'permits': 0.16; 'url:issues': 0.16; 'documented': 0.18; 'skip:` 10': 0.18; 'fix': 0.21; 'minor': 0.22; 'parameter': 0.22; 'yield': 0.27; 'message-id:@mail.gmail.com': 0.28; 'checking.': 0.29; 'download:': 0.29; 'key,': 0.29; 'methods.': 0.29; 'testing.': 0.29; 'types.': 0.29; '-----': 0.29; 'allows': 0.30; 'code': 0.31; 'similar': 0.32; 'included': 0.32; 'related': 0.32; 'url:python': 0.33; 'indexed': 0.33; 'true.': 0.33; 'received:google.com': 0.34; 'minimum': 0.35; 'but': 0.36; 'url:org': 0.36; 'list,': 0.36; 'project': 0.36; 'subject:: ': 0.37; 'release': 0.37; 'skip:- 20': 0.37; 'version': 0.38; 'method': 0.39; 'performance': 0.39; 'url:docs': 0.39; 'to:addr:python.org': 0.39; 'data': 0.40; 'maximum': 0.61; 'default': 0.61; 'hours': 0.63; 'reverse': 0.66; '100%': 0.75; 'ranges': 0.76; 'dict,': 0.84; 'issues:': 0.84; 'source:': 0.84; 'subject:skip:S 10': 0.84; 'announcing': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=pWyUmIAjj6xK33D2N2XvIqdQPf+L8ksHSFdBAHi5qfU=; b=Hv7xvK6VvDWc0FgozMw5zugAQ0eBTZEKzp4CQAEy7V3dWM/+6wSjjJ0ozEnMIgO32k XQ9miCvE7DrFlBhHcoOc2p0meGbaeR1a8m+ffWMq5pVkpqywAvmh6O6lVK+FWhOeVjEW v+KvTBOxfKJEskFaqTBe6wcSq9KmtOGEG2s8YZk3oFTgPLMM856BH967dBosA49qQJu/ 6EgCVwfej5wRH+1/yfTBT5T6CjpyNfZBsdn2oQBgSJK62vc7UUuZbJfNjvL1/olwlcwr Bc38AXLN2a8OuY1GbqevN2NhTQrqPutSqG5oMUh65iArM59FG7dc/pQHj04S4a/rdNYB eHvw== MIME-Version: 1.0 X-Received: by 10.50.66.174 with SMTP id g14mr23714411igt.7.1435005085705; Mon, 22 Jun 2015 13:31:25 -0700 (PDT) Date: Mon, 22 Jun 2015 13:31:25 -0700 Subject: ANN: SortedContainers 0.9.6 released From: Grant Jenks To: python-announce-list@python.org Content-Type: text/plain; charset=UTF-8 X-Mailman-Approved-At: Tue, 23 Jun 2015 09:34:45 +0200 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Newsgroups: comp.lang.python.announce Message-ID: Lines: 38 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1435044886 news.xs4all.nl 2957 [2001:888:2000:d::a6]:33201 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 5213 X-Received-Body-CRC: 1626227069 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone04.am1.xlned.com!bcyclone04.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python.announce:1749 Announcing the release of SortedContainers version 0.9.6 What is SortedContainers? ------------------------- SortedContainers is an Apache2-licensed, pure-Python implementation of sorted list, sorted dict, and sorted set data types that is fast-as-C implementations with 100% code coverage and hours of stress testing. The project is fully documented with performance benchmarks and comparisons to alternative implementations. What's new in 0.9.6? -------------------- - Added `islice` method to all data types. This method is similar to `__getitem__` index slicing but returns an iterator, similar to itertools.islice but without the `step` parameter. `islice` also has a default argument `reverse=False` which will yield items from the slice in reverse order when True. - Added `irange` and `irange_key` methods to all data types. Like `islice` this method returns an iterator but slices the data type from a given minimum to maximum value. By default both the minimum and maximum are included in the range and a parameter `inclusive=(True, True)` allows this to be changed. A default argument `reverse=False` will yield items in reverse order when True. The `irange_key` variant permits constructing ranges directly from the indexed key, similar to `bisect_key` and related methods. - Minor fix to index checking. - Minor documentation improvements. Links ----- - Documentation: http://www.grantjenks.com/docs/sortedcontainers/ - Download: https://pypi.python.org/pypi/sortedcontainers - Source: https://github.com/grantjenks/sorted_containers - Issues: https://github.com/grantjenks/sorted_containers/issues This release is backwards-compatible. Please upgrade.