summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2005-03-17 14:31:08 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2005-03-17 14:31:08 -0500
commit5977324255daabfcc6b0e2138f53e27b55a7e21d (patch)
treece4bc042a5c689b991e65a2c379a89460659258c /python
parentd40a1c6573447bd01058611f88256ddc514439c3 (diff)
downloadgem5-5977324255daabfcc6b0e2138f53e27b55a7e21d.tar.xz
allow the call to len on Value proxy.
--HG-- extra : convert_revision : 1a0aaf8db5ef60e0e7fc053bf4605eb90bb6e9e0
Diffstat (limited to 'python')
-rw-r--r--python/m5/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index e6ad5a0ba..bb880cd29 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -895,6 +895,9 @@ class Value(object):
def __str__(self):
return str(self._getattr())
+ def __len__(self):
+ return len(self._getattr())
+
# Regular parameter.
class _Param(object):
def __init__(self, ptype, *args, **kwargs):