Issue #19030: special-cased __dict__ as the actual dict is not returned, a proxy is.

This commit is contained in:
Ethan Furman 2013-10-18 01:22:08 -07:00
parent 2498d9e968
commit a8b0707d91
1 changed files with 2 additions and 0 deletions

View File

@ -362,6 +362,8 @@ def classify_class_attrs(cls):
dict_obj = sentinel
if name not in processed:
try:
if name == '__dict__':
raise Exception("__dict__ is special, we don't want the proxy")
get_obj = getattr(cls, name)
except Exception as exc:
pass