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 <st...@pearwood.info> wrote:
>
> 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/



-- 
Night gathers, and now my watch begins. It shall not end until my death.
_______________________________________________
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/3CCG3BMMGG2RDI4IXIRCO3C6ULCCJHPV/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to