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

Emanuel Barry report at bugs.python.org
Thu Aug 18 10:51:08 EDT 2016


Emanuel Barry added the comment:

The approach I'd take would be to change how {get,set,del}attr handle AttributeError; possibly by automatically filling in the information and giving a nicer error message. This would fix this as a side-effect (somewhat; some bits of code would need to change). How does that sound to core devs?

----------
nosy: +ebarry

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


More information about the Python-bugs-list mailing list