Author: Carl Friedrich Bolz <[email protected]>
Branch:
Changeset: r76241:d748a4ca2557
Date: 2015-03-04 15:05 +0100
http://bitbucket.org/pypy/pypy/changeset/d748a4ca2557/
Log: warn when using DeprecationWarning
diff --git a/rpython/rlib/jit.py b/rpython/rlib/jit.py
--- a/rpython/rlib/jit.py
+++ b/rpython/rlib/jit.py
@@ -96,6 +96,8 @@
""" Make sure the JIT traces inside decorated function, even
if the rest of the module is not visible to the JIT
"""
+ import warnings
+ warnings.warn("look_inside is deprecated", DeprecationWarning)
func._jit_look_inside_ = True
return func
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit