Python 3.13 is set to be released on October 1, 2024, and it brings several improvements to the language, including changes to the interactive interpreter, clearer error messages, and advancements in removing the global interpreter lock. The new version lays the groundwork for future performance improvements. The interactive interpreter, also known as the REPL, has been improved with features like multiline editing and efficient pasting of code. The REPL now supports REPL-specific commands without parentheses and has a subtly colored prompt. Users can recall entire blocks of code with a single Up keystroke, making it easier to work with multiline statements. The new version also supports proper pasting of code, treating it as a unit and executing it as it would inside a script. Additionally, Python 3.13 includes advancements in removing the global interpreter lock, making Python free-threaded, and an experimental Just-In-Time compiler. The new version also brings minor upgrades to Python's static type system. Before upgrading, users should consider the potential impact on their existing code and workflows. Tutorials and quizzes are available to help users learn about the new features and test their knowledge.
realpython.com
realpython.com
Create attached notes ...