[Python-ideas] AtributeError inside __get__

Chris Angelico rosuav at gmail.com
Tue Dec 27 06:58:44 EST 2016


On Tue, Dec 27, 2016 at 9:11 PM, Zahari <zaharid at gmail.com> wrote:
> This looks like a good idea. Note that there is also getattr(X(), 'y',
> 'default') that would have to behave like this.
>

Forgot about that. Feel free to enhance the hasattr replacement. I
still think the parameterization of AttributeError would be worth
doing, but the two are independent.

ChrisA


More information about the Python-ideas mailing list