mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #19030: special-cased __dict__ as the actual dict is not returned, a proxy is.
This commit is contained in:
parent
2498d9e968
commit
a8b0707d91
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue