[pypy-commit] pypy default: Use default=False, and enable it only in -O2/O3/Ojit, like the

arigo noreply at buildbot.pypy.org
Tue Jan 17 14:52:53 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r51400:3d6e00235d87
Date: 2011-11-05 19:36 +0100
http://bitbucket.org/pypy/pypy/changeset/3d6e00235d87/

Log:	Use default=False, and enable it only in -O2/O3/Ojit, like the other
	optimizations. Fixes an issue if weakrefs are disabled.
	(transplanted from 5eb3fc96c89290e270737f0652388f29154d3b2c)

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -340,7 +340,7 @@
                    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=True),
+                   default=False),
      ]),
 ])
 
@@ -370,6 +370,7 @@
         config.objspace.std.suggest(getattributeshortcut=True)
         config.objspace.std.suggest(newshortcut=True)
         config.objspace.std.suggest(withspecialisedtuple=True)
+        config.objspace.std.suggest(withidentitydict=True)
         #if not IS_64_BITS:
         #    config.objspace.std.suggest(withsmalllong=True)
 


More information about the pypy-commit mailing list