Commit a8b0707d authored by Ethan Furman's avatar Ethan Furman

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

parent 2498d9e9
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment