This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Paul.Davis, cheryl.sabella, docs@python, dstanek, eric.araujo, terry.reedy
Date 2017-12-09.02:27:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Before testing, let alone documenting, the status quo, I would like to be sure that suppressing the exception is truly the intended behavior.  Is there a way to get an annotated listing from git (given which patch, and therefore which person, is responsible for each line)?  I will try asking on pydev.

Calling __getattr__ on property failure is a behavior of __getattribute__, not of the property, and I would expect object.__getattribute__ to be tested wherever object is, but I have not found such tests.  If we do add a test, the best model in looks like `def test_module_subclasses(self):`.  The test class would only need __getattr__ and the faulty property.

class Foo(object):
    def __getattr__(self, name):
        print(f'Getattr {name}')
        return True
    def bing(self):
        print('Property bing')
        raise AttributeError("blarg")

f = Foo()

#prints (which would be the log list in a test)
Property bing
Getattr bing
Date User Action Args
2017-12-09 02:27:29terry.reedysetrecipients: + terry.reedy, dstanek, eric.araujo, docs@python, Paul.Davis, cheryl.sabella
2017-12-09 02:27:28terry.reedysetmessageid: <>
2017-12-09 02:27:28terry.reedylinkissue8722 messages
2017-12-09 02:27:27terry.reedycreate