[pypy-svn] r77100 - pypy/branch/better-map-instances/pypy/objspace/std

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Sep 15 19:51:35 CEST 2010


Author: cfbolz
Date: Wed Sep 15 19:51:34 2010
New Revision: 77100

Modified:
   pypy/branch/better-map-instances/pypy/objspace/std/mapdict.py
Log:
checking in a hack to test a theory on tannit


Modified: pypy/branch/better-map-instances/pypy/objspace/std/mapdict.py
==============================================================================
--- pypy/branch/better-map-instances/pypy/objspace/std/mapdict.py	(original)
+++ pypy/branch/better-map-instances/pypy/objspace/std/mapdict.py	Wed Sep 15 19:51:34 2010
@@ -403,6 +403,8 @@
 _subclass_cache = {}
 
 def _make_subclass_size_n(supercls, n):
+    if supercls._init_empty.im_func is not BaseMapdictObject._init_empty.im_func:
+        return supercls
     from pypy.rlib import unroll, rerased
     rangen = unroll.unrolling_iterable(range(n))
     nmin1 = n - 1



More information about the Pypy-commit mailing list