Ethan Furman added the comment: Well, attached patch doesn't segfault in debug mode, but the errors aren't any better; in fact, I'd say their worse. Here's the current output from my test script:
=============================================================== getter failed for descriptor 'huh' looking up not_here looking up huh huh not in class <class '__main__.With'> Traceback (most recent call last): File "break_getattr.py", line 30, in <module> print(TestEnum.one.missing) AttributeError: getter failed for descriptor 'missing' =============================================================== As you can see, we have even less information when a class level __getattr__ is /absent/, and when we do have one, there is no change (which is exactly where we really wanted the change). :( ---------- Added file: http://bugs.python.org/file32153/issue1615.stoneleaf.01.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1615> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com