Mark Diekhans <ma...@kermodei.com> added the comment:

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 <rep...@bugs.python.org> writes:
> 
> Raymond Hettinger <raymond.hettin...@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 <rep...@bugs.python.org>
> <https://bugs.python.org/issue31989>
> _______________________________________

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue31989>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to