[pypy-svn] r38992 - pypy/dist/pypy/doc

fijal at codespeak.net fijal at codespeak.net
Fri Feb 16 00:16:02 CET 2007

Author: fijal
Date: Fri Feb 16 00:16:00 2007
New Revision: 38992

A note about get_transparent_controller

Modified: pypy/dist/pypy/doc/objspace-proxies.txt
--- pypy/dist/pypy/doc/objspace-proxies.txt	(original)
+++ pypy/dist/pypy/doc/objspace-proxies.txt	Fri Feb 16 00:16:00 2007
@@ -515,6 +515,18 @@
 does not show up at all (indeed the type is the only aspect of the instance that
 the controller cannot change).
+Provided API:
+Transparent proxy provides two magic functions appearing in the pypymagic module.
+* `transparent_proxy` - a basic function to create proxy object.
+* `get_transparent_controller` - for some use-cases there is need to know
+  when an object is a transparent proxy. This function returns an original controller
+  (a callable) or None in case this is a normal Python object. This is
+  the only official way of distinguishing transparent objects from normal ones.
 Further points of interest:

More information about the Pypy-commit mailing list