[pypy-commit] pypy default: Disable a couple of extra features when translating with

arigo noreply at buildbot.pypy.org
Mon Apr 16 18:05:07 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r54430:09a1f054f29a
Date: 2012-04-16 17:52 +0200
http://bitbucket.org/pypy/pypy/changeset/09a1f054f29a/

Log:	Disable a couple of extra features when translating with
	--no-translation-rweakref.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -320,10 +320,14 @@
                    default=False),
         BoolOption("getattributeshortcut",
                    "track types that override __getattribute__",
-                   default=False),
+                   default=False,
+                   # weakrefs needed, because of get_subclasses()
+                   requires=[("translation.rweakref", True)]),
         BoolOption("newshortcut",
                    "cache and shortcut calling __new__ from builtin types",
-                   default=False),
+                   default=False,
+                   # weakrefs needed, because of get_subclasses()
+                   requires=[("translation.rweakref", True)]),
 
         BoolOption("logspaceoptypes",
                    "a instrumentation option: before exit, print the types seen by "
@@ -337,7 +341,9 @@
                    requires=[("objspace.std.builtinshortcut", True)]),
         BoolOption("withidentitydict",
                    "track types that override __hash__, __eq__ or __cmp__ and use a special dict strategy for those which do not",
-                   default=False),
+                   default=False,
+                   # weakrefs needed, because of get_subclasses()
+                   requires=[("translation.rweakref", True)]),
      ]),
 ])
 


More information about the pypy-commit mailing list