[issue38530] Offer suggestions on AttributeError and NameError

Dennis Sweeney report at bugs.python.org
Sat Apr 24 23:15:21 EDT 2021


Dennis Sweeney <sweeney.dennis650 at gmail.com> added the comment:

I opened PR 25584 to fix this current behavior:

>>> v
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'v' is not defined. Did you mean: 'id'?
>>> vv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'vv' is not defined. Did you mean: 'id'?
>>> vvv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'vvv' is not defined. Did you mean: 'abs'?

----------

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


More information about the Python-bugs-list mailing list