diff options
Diffstat (limited to 'src/zope/security/proxy.py')
-rw-r--r-- | src/zope/security/proxy.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zope/security/proxy.py b/src/zope/security/proxy.py index d7f12e2..77a82d4 100644 --- a/src/zope/security/proxy.py +++ b/src/zope/security/proxy.py @@ -199,6 +199,11 @@ class ProxyPy(PyProxyBase): return bool(wrapped) __bool__ = __nonzero__ + def __length_hint__(self): + # no check + wrapped = super(PyProxyBase, self).__getattribute__('_wrapped') + return wrapped.__length_hint__() + def __coerce__(self, other): # For some reason _check_name does not work for coerce() wrapped = super(PyProxyBase, self).__getattribute__('_wrapped') |