projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebdd004
)
SmartDict: Make SmartDict an attrdict
author
Nathan Binkert
<nate@binkert.org>
Mon, 1 Mar 2010 03:28:09 +0000
(19:28 -0800)
committer
Nathan Binkert
<nate@binkert.org>
Mon, 1 Mar 2010 03:28:09 +0000
(19:28 -0800)
src/python/m5/util/smartdict.py
patch
|
blob
|
history
diff --git
a/src/python/m5/util/smartdict.py
b/src/python/m5/util/smartdict.py
index d85dbd517eae269a2cd9e87ca9129443b030e904..61e48ddba329ebef753bea3d18cdcb9f7470f827 100644
(file)
--- a/
src/python/m5/util/smartdict.py
+++ b/
src/python/m5/util/smartdict.py
@@
-43,6
+43,7
@@
from convert import *
+from attrdict import attrdict
class Variable(str):
"""Intelligent proxy class for SmartDict. Variable will use the
@@
-109,7
+110,7
@@
class UndefinedVariable(object):
def __nonzero__(self):
return False
-class SmartDict(dict):
+class SmartDict(
attr
dict):
"""Dictionary class that holds strings, but intelligently converts
those strings to other types depending on their usage"""