params: Prevent people from setting attributes on vector params.

This commit is contained in:
Nathan Binkert 2008-06-15 21:26:33 -07:00
parent 6dedc645f7
commit b429b1759d

View file

@ -166,6 +166,10 @@ class ParamDesc(object):
class VectorParamValue(list):
__metaclass__ = MetaParamValue
def __setattr__(self, attr, value):
raise AttributeError, \
"Not allowed to set %s on '%s'" % (attr, type(self).__name__)
def ini_str(self):
return ' '.join([v.ini_str() for v in self])