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 gangesmaster
Recipients gangesmaster
Date 2007-12-13.20:13:36
SpamBayes Score 0.020630766
Marked as misclassified No
Message-id <>
it seems the code of PyObject_GenericGetAttr, which invokes the
descriptor protocol, silences any AttributeErrors raised by the
descriptor, for classes that also define __getattr__. it should
propagate up rather than being silently ignored.

the attached example is quite artificial, but it's a simplification of
real world code i had hard time debugging. turned out i misspelled an
attribute name inside the property getter function, which raised an
AttributeError as expected -- but the exception i got was quite
misleading, saying the instance has no attribute named so.

this bug only happens when the class defines a custom __getattr__. see
attached demo file for details.
File name Uploaded
demo.txt gangesmaster, 2007-12-13.20:13:36
Date User Action Args
2007-12-13 20:13:37gangesmastersetspambayes_score: 0.0206308 -> 0.020630766
recipients: + gangesmaster
2007-12-13 20:13:37gangesmastersetspambayes_score: 0.0206308 -> 0.0206308
messageid: <>
2007-12-13 20:13:37gangesmasterlinkissue1615 messages
2007-12-13 20:13:36gangesmastercreate