Author: Ronan Lamy <[email protected]>
Branch: py2-mappingproxy
Changeset: r86119:24dfaf3c5ca1
Date: 2016-08-09 17:54 +0100
http://bitbucket.org/pypy/pypy/changeset/24dfaf3c5ca1/

Log:    Add typechecking to type.__dict__ descriptor

diff --git a/pypy/objspace/std/typeobject.py b/pypy/objspace/std/typeobject.py
--- a/pypy/objspace/std/typeobject.py
+++ b/pypy/objspace/std/typeobject.py
@@ -911,6 +911,7 @@
         abstractinst.p_recursive_isinstance_type_w(space, w_inst, w_obj))
 
 def type_get_dict(space, w_cls):
+    w_cls = _check(space, w_cls)
     from pypy.objspace.std.dictproxyobject import W_DictProxyObject
     w_dict = w_cls.getdict(space)
     if w_dict is None:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to