[pypy-svn] r75380 - pypy/trunk/pypy/rlib
fijal at codespeak.net
fijal at codespeak.net
Sun Jun 13 19:04:04 CEST 2010
Author: fijal
Date: Sun Jun 13 19:04:02 2010
New Revision: 75380
Modified:
pypy/trunk/pypy/rlib/jit.py
Log:
Another docstring
Modified: pypy/trunk/pypy/rlib/jit.py
==============================================================================
--- pypy/trunk/pypy/rlib/jit.py (original)
+++ pypy/trunk/pypy/rlib/jit.py Sun Jun 13 19:04:02 2010
@@ -42,6 +42,11 @@
return func
def loop_invariant(func):
+ """ Describes a function with no argument that returns an object that
+ is always the same in a loop.
+
+ Use it only if you know what you're doing.
+ """
dont_look_inside(func)
func._jit_loop_invariant_ = True
return func
More information about the Pypy-commit
mailing list