[pypy-commit] pypy py2-mappingproxy: Add typechecking to type.__dict__ descriptor
rlamy
pypy.commits at gmail.com
Tue Aug 9 12:55:01 EDT 2016
Author: Ronan Lamy <ronan.lamy at gmail.com>
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:
More information about the pypy-commit
mailing list