[pypy-commit] pypy default: update the docstring

antocuni noreply at buildbot.pypy.org
Wed Jul 18 11:39:48 CEST 2012

Author: Antonio Cuni <anto.cuni at gmail.com>
Changeset: r56123:2f534f9ab6a6
Date: 2012-07-18 11:39 +0200

Log:	update the docstring

diff --git a/pypy/rlib/objectmodel.py b/pypy/rlib/objectmodel.py
--- a/pypy/rlib/objectmodel.py
+++ b/pypy/rlib/objectmodel.py
@@ -112,7 +112,9 @@
     """ Decorate a function with forcing of RPython-level types on arguments.
     None means no enforcing.
-    XXX shouldn't we also add asserts in function body?
+    When not translated, the type of the actual arguments are checked against
+    the enforced types every time the function is called. You can disable the
+    typechecking by passing ``typecheck=False`` to @enforceargs.
     typecheck = kwds.pop('typecheck', True)
     if kwds:

More information about the pypy-commit mailing list