allow the call to len on Value proxy.
--HG-- extra : convert_revision : 1a0aaf8db5ef60e0e7fc053bf4605eb90bb6e9e0
This commit is contained in:
parent
d40a1c6573
commit
5977324255
|
@ -895,6 +895,9 @@ class Value(object):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self._getattr())
|
return str(self._getattr())
|
||||||
|
|
||||||
|
def __len__(self):
|
||||||
|
return len(self._getattr())
|
||||||
|
|
||||||
# Regular parameter.
|
# Regular parameter.
|
||||||
class _Param(object):
|
class _Param(object):
|
||||||
def __init__(self, ptype, *args, **kwargs):
|
def __init__(self, ptype, *args, **kwargs):
|
||||||
|
|
Loading…
Reference in a new issue