[Python-Dev] collections.sortedtree (original) (raw)

Raymond Hettinger raymond.hettinger at gmail.com
Fri Mar 28 22:29:51 CET 2014


On Mar 26, 2014, at 1:31 PM, Marko Rauhamaa <marko at pacujo.net> wrote:

I have made a full implementation of a balanced tree and would like to know what the process is to have it considered for inclusion in Python 3.

To summarize, the implementation closely parallels dict() features and resides in collectionsmodule.c under the name collections.sortedtree. It uses solely the "<" operator to compare keys. I have chosen the AVL tree as an implementation technique.

FWIW, I think there may be room for a sorted collection somewhere in the standard library.

As others have said, the best place to start is by putting a module on PyPi to let it mature and to compete with other approaches to the problem.

Here are a few random thoughts on the over-all idea:

Raymond Hettinger -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20140328/aba86088/attachment.html>



More information about the Python-Dev mailing list