Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Python
PEP 372 -- Adding an ordered directory to collections
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="bearophileHUGS, post: 3567581"] Oh, very good, better late than never. This is my pure Python version, it performs get, set and del operations too in O(1): [URL]http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/498195[/URL] Working with C such data structure becomes much faster, because it can use true pointers. Then another data structure that may be named SortedDict can be created, that keeps items in their natural order (instead of the insertion order). Bye, bearophile [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Python
PEP 372 -- Adding an ordered directory to collections
Top