Author: Maciej Fijalkowski <[email protected]>
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"):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit