python: add a sorted dictionary class

It would be nice if python had a tree class that would do this for real,
but since we don't, we'll just keep a sorted list of keys and update
it on demand.
This commit is contained in:
Nathan Binkert
2010-07-21 15:53:53 -07:00
parent 3518416917
commit 76c92c3e30
3 changed files with 161 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ from code_formatter import code_formatter
from multidict import multidict
from orderdict import orderdict
from smartdict import SmartDict
from sorteddict import SortedDict
# define this here so we can use it right away if necessary
def errorURL(prefix, s):