[pypy-svn] r79995 - pypy/trunk/pypy/module/sys

arigo at codespeak.net arigo at codespeak.net
Sat Dec 11 18:53:17 CET 2010


Author: arigo
Date: Sat Dec 11 18:53:16 2010
New Revision: 79995

Modified:
   pypy/trunk/pypy/module/sys/vm.py
Log:
Replace the deprecation message with something a bit clearer.  The issue is that we can't arbitrarily add new 'deprecations' to the language.

Modified: pypy/trunk/pypy/module/sys/vm.py
==============================================================================
--- pypy/trunk/pypy/module/sys/vm.py	(original)
+++ pypy/trunk/pypy/module/sys/vm.py	Sat Dec 11 18:53:16 2010
@@ -50,7 +50,7 @@
                              space.wrap("recursion limit must be positive"))
     # global recursion_limit
     # we need to do it without writing globals.
-    space.warn('setrecursionlimit deprecated', space.w_DeprecationWarning)
+    space.warn('setrecursionlimit() is ignored (and not needed) on PyPy', space.w_DeprecationWarning)
     space.sys.recursionlimit = new_limit
 
 def getrecursionlimit(space):



More information about the Pypy-commit mailing list