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~
_______________________________________________
Python-ideas mailing list
Python-ideas@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to