[pypy-svn] r41118 - pypy/dist/pypy/doc
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Mar 22 20:05:07 CET 2007
Author: cfbolz
Date: Thu Mar 22 20:05:06 2007
New Revision: 41118
Modified:
pypy/dist/pypy/doc/__pypy__-module.txt
Log:
add taint object space docs
Modified: pypy/dist/pypy/doc/__pypy__-module.txt
==============================================================================
--- pypy/dist/pypy/doc/__pypy__-module.txt (original)
+++ pypy/dist/pypy/doc/__pypy__-module.txt Thu Mar 22 20:05:06 2007
@@ -36,6 +36,38 @@
.. _`thunk object space docs`: objspace-proxies.html#thunk
+Tain Object Space Functionality
+===============================
+
+When the taint object space is used (choose with :config:`objspace.name`),
+the following objects are put into ``__pypy__``:
+
+ - ``taint(obj)``: Return a tainted version of the argument.
+
+ - ``is_tainted(obj)``: Return whether the argument is tainted.
+
+ - ``untaint(expectedtype, tainted_obj)``: Untaint untainted_obj and return it.
+ If the result is not of expectedtype, raise a type error.
+
+ - ``taint_atomic(callable)``: decorator to make a callable "taint-atomic": if
+ the function is called with tainted arguments, those are untainted. The
+ result of the function is tainted again. All exceptions that the callable
+ raises are turned into taint bombs.
+
+ - ``_taint_debug(debug_level)``: Set the debug level. If the debug level is
+ greater than 0, the creation of taint bombs will print debug information. For
+ debugging purposes only!
+
+ - ``_taint_look(obj)``: Print some info about the taintedness of an object. For
+ debugging purposes only!
+
+ - ``TaintError``: Exception that is raised when an operation revealing
+ information on a tainted object is performed.
+
+For explanations and examples see the `taint object space docs`_.
+
+.. _`taint object space docs`: objspace-proxies.html#taint
+
Transparent Proxy Functionality
===============================
@@ -52,8 +84,8 @@
.. _`transparent proxies`: objspace-proxies.html#tproxy
-Functionality available on py.py
-================================
+Functionality available on py.py (not after translation)
+========================================================
- ``isfake(obj)``: returns True if ``obj`` is faked.
@@ -61,4 +93,3 @@
-XXX missing taint obj space docs
More information about the Pypy-commit
mailing list