eryksun added the comment:

> exception instance raised in __getattr__ should not lead 
> to its another call but propagated to outer level

In this case the next outer level is your descriptor implementation. You have 
to ensure it doesn't leak the AttrubuteError. Otherwise the associated 
__getattribute__ call is implicitly raising AttributeError, and [by design][1] 
Python must default to calling __getattr__.

[1]: https://docs.python.org/3/reference/datamodel.html#object.__getattribute__

----------
nosy: +eryksun
stage:  -> resolved

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24983>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to