I was using Python 3.10 and got this NameError when I mistyped a name:

NameError: name 'KeyboardInterrupted' is not defined. Did you mean: 
'KeyboardInterrupt'?

It even works for attribute errors too.

That's fantastic! This is a really amazing useability improvement, thank 
you everyone who was involved! I literally squeed :-)

I just may spend a few days deliberately mistyping names in the REPL 
just to see this :-)


-- 
Steve
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/python-dev@python.org/message/2CUCVKZ44IYCW5QRV4CMVC7YDYBCJFYG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to