[issue27794] setattr a read-only property; the AttributeError should show the attribute that failed

R. David Murray report at bugs.python.org
Mon Aug 22 13:46:42 EDT 2016


R. David Murray added the comment:

Not worth it.  It would feel like boilerplate, and the situation where you want the information is almost invariably going to be one you didn't anticipate and so didn't "bother" with the name.  Either that or you always have to do it, and the elegance of your python code takes a hit not commensurate with the benefit.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27794>
_______________________________________


More information about the Python-bugs-list mailing list