Eric V. Smith <e...@trueblade.com> added the comment:

It's obviously not super important, but it would be nicer if the version with 
the suggestion were more like the version without the suggestion. Specifically, 
mentioning the object type:

>>> class E:
...     __slots__=('a')
...
>>> E().a
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: a. Did you mean: 'a'?
>>> E().b
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'E' object has no attribute 'b'
>>>

----------

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

Reply via email to