Generic transparent proxies via a C extension module
Python C
Latest commit 903a662 Apr 23, 2017 @jamadden jamadden Back to development: 4.2.2
Permalink
Failed to load latest commit information.
docs
src/zope
.gitignore
.travis.yml
CHANGES.rst
COPYRIGHT.txt
LICENSE.txt
MANIFEST.in
README.rst
bootstrap.py
buildout.cfg
rtd.txt
setup.cfg
setup.py
tox.ini

README.rst

zope.proxy

Latest Version https://travis-ci.org/zopefoundation/zope.proxy.png?branch=master Documentation Status

Proxies are special objects which serve as mostly-transparent wrappers around another object, intervening in the apparent behavior of the wrapped object only when necessary to apply the policy (e.g., access checking, location brokering, etc.) for which the proxy is responsible.

zope.proxy is implemented via a C extension module, which lets it do things like lie about its own __class__ that are difficult in pure Python (and were completely impossible before metaclasses). It also proxies all the internal slots (such as __int__/__str__/__add__).