[Python-ideas] AtributeError inside __get__

Ethan Furman ethan at stoneleaf.us
Fri Dec 30 14:52:47 EST 2016


On 12/30/2016 06:55 AM, Nick Coghlan wrote:

> Rather than changing the descriptor protocol in general, I'd personally be
>  more amenable to the idea of *property* catching AttributeError from the
>  functions it calls and turning it into RuntimeError (after a suitable
>  deprecation period). That way folks that really wanted the old behaviour
>  could define their own descriptor that works the same way property does
>  today, whereas if the descriptor protocol itself were to change, there's
>  very little people could do to work around it if it wasn't what they wanted.

Sounds good to me.  :)

--
~Ethan~


More information about the Python-ideas mailing list