Python 3.12 will offer even more readable and actionable error messages. With improved communication in various error situations, this tutorial will teach you about the background and limitations of these changes and peek into the CPython source code of the pull requests that made these error messages sparkle. Python 3.12 expands on the tradition of offering helpful suggestions with several improvements to import-related errors, including unimported standard library modules, missing self, wrong order for import statements, and misspelled names in imported namespaces. Keep track of what’s new in the changelog for an up-to-date list of improvements and new features coming in Python 3.12, which will be released in October 2023. Download sample code for a sneak peek at Python 3.12.