changeset 5af4976c17e2 in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=5af4976c17e2
description:
SmartDict: Make SmartDict an attrdict
diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
src/python/m5/util/smartdict.py | 3 ++-
diffs (20 lines):
diff -r 83f139c32c2f -r 5af4976c17e2 src/python/m5/util/smartdict.py
--- a/src/python/m5/util/smartdict.py Sun Feb 28 19:28:09 2010 -0800
+++ b/src/python/m5/util/smartdict.py Sun Feb 28 19:28:09 2010 -0800
@@ -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 @@
def __nonzero__(self):
return False
-class SmartDict(dict):
+class SmartDict(attrdict):
"""Dictionary class that holds strings, but intelligently converts
those strings to other types depending on their usage"""
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev