bpo-38530: Offer suggestions on NameError (GH-25397)
When printing NameError raised by the interpreter, PyErr_Display
will offer suggestions of simmilar variable names in the function that the exception
was raised from:
>>> schwarzschild_black_hole = None
>>> schwarschild_black_hole
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'schwarschild_black_hole' is not defined. Did you mean: schwarzschild_black_hole? P
Pablo Galindo committed
5bf8bf2267cd109970b2d946d43b2e9f71379ba2
Parent: c4073a2
Committed by GitHub <noreply@github.com>
on 4/14/2021, 2:10:33 PM