Python 3.12 Preview: Ever Better Error Messages

Python 3.12 will be released in October 2023. Even though October is still months away, you can already preview some of the upcoming features, including how Python 3.12 will offer even more readable and actionable error messages.

In this tutorial, you’ll:

  • Experience the improved communication in various error situations
  • Learn about the background and limitations of these changes
  • Peek into the CPython source code of the pull requests that made these error messages sparkle

There are many other improvements and new features coming in Python 3.12. Keep track of what’s new in the changelog for an up-to-date list. The list will be complete when Python 3.12 development reaches feature freeze in May 2023.

Better

 

 

 

To finish reading, please visit source site