[issue45064] Raising AttributeError in descriptor decorator causing searching attribute in __mro__
Yurii Karabas
report at bugs.python.org
Tue Aug 31 18:03:11 EDT 2021
Yurii Karabas <1998uriyyo at gmail.com> added the comment:
Hi Mateusz,
It's not a bug, it's expected behavior.
__getattr__ called when the default attribute access fails with an AttributeError (either __getattribute__() raises an AttributeError because name is not an instance attribute or an attribute in the class tree for self; or __get__() of a name property raises AttributeError).
You can find more information here:
https://docs.python.org/3/reference/datamodel.html?highlight=__getattr__#object.__getattr__
----------
nosy: +uriyyo
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45064>
_______________________________________
More information about the Python-bugs-list
mailing list