diff options
author | Jason Madden <jamadden@gmail.com> | 2017-09-14 10:34:57 -0500 |
---|---|---|
committer | Jason Madden <jamadden@gmail.com> | 2017-09-14 10:34:57 -0500 |
commit | 1d1aef08f85c99a747f0a18227ac79bc39c168cc (patch) | |
tree | 35a0c17dc4227645c39e0aeb0bf15530d53b44a1 /src | |
parent | b38c6b4836fe3249710f1a16061576bad8ff8b1a (diff) | |
download | zope-security-1d1aef08f85c99a747f0a18227ac79bc39c168cc.tar.gz |
Cross-refs and cleanups for proxy.py/rst
Diffstat (limited to 'src')
-rw-r--r-- | src/zope/security/proxy.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/zope/security/proxy.py b/src/zope/security/proxy.py index 8f6d7c3..55f54f6 100644 --- a/src/zope/security/proxy.py +++ b/src/zope/security/proxy.py @@ -60,6 +60,16 @@ def _fmt_address(obj): class ProxyPy(PyProxyBase): + """ + The pure-Python reference implementation of a security proxy. + + This should normally not be created directly, instead use the + :func:`~.ProxyFactory`. + + You can choose to use this implementation instead of the C implementation + by default by setting the ``PURE_PYTHON`` environment variable before + :mod:`zope.security` is imported. + """ __slots__ = ('_wrapped', '_checker') def __new__(cls, value, checker): @@ -394,7 +404,7 @@ def getTestProxyItems(proxy): def isinstance(object, cls): - """Test whether an object is an instance of a type. + """Test whether an *object* is an instance of a type. This works even if the object is security proxied. """ |