A few collections/data structures that I think should be part of python. Python3 that is, I don't plan on supporting old versions. Maybe 2.7, I'm not sure what the deal with that is.
If you've got any ideas post them to the group or email me at email@example.com.
I released the code under the Apache License 2.0 because from what I understand it is the most compatible with Python.
collectionsRead the wiki page on CollectionsExtendedProposal for more info.
Basically I propose that 2 new classes (and respective frozen varients) be added to the collections module to round out the available collections.
A bag, or multiset, is a collection that has no order and no limit on unique elements.
A setlist is an ordered collection of unique elements, combining both set and list.
DownloadTo download the latest numbered version, click on the Featured Download link on the right side of this page. You can get the bleeding edge version from the subversion repository. Or you can download the PyPI package.
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.