From: Nathan Binkert Date: Mon, 1 Mar 2010 03:28:09 +0000 (-0800) Subject: SmartDict: Make SmartDict an attrdict X-Git-Tag: stable_2012_02_02~1485 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25aac791deb20ebf115b9e82e83dd4f8f62d7d31;p=gem5.git SmartDict: Make SmartDict an attrdict --- diff --git a/src/python/m5/util/smartdict.py b/src/python/m5/util/smartdict.py index d85dbd517..61e48ddba 100644 --- 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(attrdict): """Dictionary class that holds strings, but intelligently converts those strings to other types depending on their usage"""