[pypy-svn] r64899 - pypy/branch/pyjitpl5/pypy/module/pypyjit

fijal at codespeak.net fijal at codespeak.net
Fri May 1 00:23:09 CEST 2009


Author: fijal
Date: Fri May  1 00:23:09 2009
New Revision: 64899

Modified:
   pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py
Log:
improve


Modified: pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py	(original)
+++ pypy/branch/pyjitpl5/pypy/module/pypyjit/policy.py	Fri May  1 00:23:09 2009
@@ -21,9 +21,10 @@
             return True
         
         # weakref support
-        if (mod == 'pypy.objspace.std.typeobject' and
-            func.__name__ == 'get_subclasses'):
-            return False
+        if mod == 'pypy.objspace.std.typeobject':
+            if func.__name__ in ['get_subclasses', 'add_subclass',
+                                 'remove_subclass']:
+                return False
 
         if mod.startswith('pypy.objspace.'):
             # we don't support floats



More information about the Pypy-commit mailing list