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

Yurii Karabas report at bugs.python.org
Sun Dec 27 11:20:16 EST 2020


Yurii Karabas <1998uriyyo at gmail.com> added the comment:

I have implemented this feature using an idea provided by Xiang Zhang.
Basically, property has new optional attribute `name` which will be added to msg of `AttributeError` in a case when `name` is set.

----------

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


More information about the Python-bugs-list mailing list