[pypy-commit] pypy default: fix interplevel subclasses for dict and list
fijal
noreply at buildbot.pypy.org
Wed May 22 15:00:47 CEST 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r64448:692ff89f4bd5
Date: 2013-05-22 14:59 +0200
http://bitbucket.org/pypy/pypy/changeset/692ff89f4bd5/
Log: fix interplevel subclasses for dict and list
diff --git a/pypy/objspace/std/objspace.py b/pypy/objspace/std/objspace.py
--- a/pypy/objspace/std/objspace.py
+++ b/pypy/objspace/std/objspace.py
@@ -663,6 +663,13 @@
class2type[base] = w_type
self._interplevel_classes[w_type] = base
+ # register other things
+ from pypy.objspace.std.dictmultiobject import W_DictMultiObject
+ from pypy.objspace.std.listobject import W_ListObject
+
+ self._interplevel_classes[self.w_dict] = W_DictMultiObject
+ self._interplevel_classes[self.w_list] = W_ListObject
+
@specialize.memo()
def _get_interplevel_cls(self, w_type):
if not hasattr(self, "_interplevel_classes"):
More information about the pypy-commit
mailing list