Oh wow, this is really impressive
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
I am glad you like it :)
I have been told that this is a very popular improvement. I promise to keep
looking for similar things in the future!
Regards from cloudy London,
Pablo Galindo Salgado
On Fri, 29 Oct 2021, 18:23 Steven D'Aprano,
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-leave@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/2CUCVKZ4... Code of Conduct: http://python.org/psf/codeofconduct/
The last thing Py which got a 👍 from me was pip's caching mechanism when installing packages!
What's New in Python 3.10 lists other suggestions and enhanced error messages:
https://docs.python.org/dev/whatsnew/3.10.html#better-error-messages
Victor
On Fri, Oct 29, 2021 at 7:22 PM Steven D'Aprano
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-leave@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/2CUCVKZ4... Code of Conduct: http://python.org/psf/codeofconduct/
-- Night gathers, and now my watch begins. It shall not end until my death.
participants (4)
-
Abdur-Rahmaan Janhangeer
-
Pablo Galindo Salgado
-
Steven D'Aprano
-
Victor Stinner