[New-bugs-announce] [issue31989] setattr on a property gives a very unhelpful exception

Mark Diekhans report at bugs.python.org
Wed Nov 8 23:11:26 EST 2017


New submission from Mark Diekhans <markd at kermodei.com>:

done a setattr on a property gives a very unhelpful error message

   AttributeError: can't set attribute

it neither indicates the name of the attribute that failed or the cause.

an error such as "can't set property attribute: the_attr_name"

would be far more helpful.

----------
messages: 305933
nosy: diekhans
priority: normal
severity: normal
status: open
title: setattr on a property gives a very unhelpful exception
type: behavior
versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7

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


More information about the New-bugs-announce mailing list