From 5977324255daabfcc6b0e2138f53e27b55a7e21d Mon Sep 17 00:00:00 2001 From: Lisa Hsu Date: Thu, 17 Mar 2005 14:31:08 -0500 Subject: [PATCH] allow the call to len on Value proxy. --HG-- extra : convert_revision : 1a0aaf8db5ef60e0e7fc053bf4605eb90bb6e9e0 --- python/m5/config.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- 2.30.2