Message305935
The trackback is not helpful if the attribute name is in a
variable. It also doesn't explain why the error occurred.
While I would not rate this as a high priority, I don't see an
argument for having uninformative error messages.
Raymond Hettinger <report@bugs.python.org> writes:
>
> Raymond Hettinger <raymond.hettinger@gmail.com> added the comment:
>
> Usually, all the necessary information is present in the previous line of the traceback:
>
> >>> a.volume = 10
> Traceback (most recent call last):
> File "<pyshell#6>", line 1, in <module>
> a.volume = 10
> AttributeError: can't set attribute
>
> I don't seem to recall anyone else having problems with this error message.
>
> ----------
> nosy: +rhettinger
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue31989>
> _______________________________________ |
|
Date |
User |
Action |
Args |
2017-11-09 04:56:24 | diekhans | set | recipients:
+ diekhans, rhettinger |
2017-11-09 04:56:24 | diekhans | link | issue31989 messages |
2017-11-09 04:56:24 | diekhans | create | |
|