diff options
author | Ethan Furman <ethan@stoneleaf.us> | 2013-10-18 00:27:39 -0700 |
---|---|---|
committer | Ethan Furman <ethan@stoneleaf.us> | 2013-10-18 00:27:39 -0700 |
commit | 80db2ca1516b7c9fc1b4477c00110e7870f18b17 (patch) | |
tree | 0cee62bbcf2cb17e7c68970f811e7a0526a500cf /Python/pythonrun.c | |
parent | b300c627e3a71c0d60e76bb808b3d666ab1679aa (diff) | |
download | cpython-80db2ca1516b7c9fc1b4477c00110e7870f18b17.tar.gz |
Close #19030: inspect.getmembers and inspect.classify_class_attrs
Order of search is now:
1. Try getattr
2. If that throws an exception, check __dict__ directly
3. If still not found, walk the mro looking for the eldest class that has
the attribute (e.g. things returned by __getattr__)
4. If none of that works (e.g. due to a buggy __dir__, __getattr__, etc.
method or missing __slot__ attribute), ignore the attribute entirely.
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions