Enhance Performance in Modules
Python 3.12 introduces several optimizations to enhance performance in various modules and functions:
Improved Performance of textwrap.indent()
The textwrap.indent() function now performs approximately 30% faster for large input sizes than before. This enhancement improves the efficiency of text manipulation operations.
Improved Import Times for Standard Library
Several standard library modules have seen significant improvements in import times. For instance, the import time of the typing module has been reduced by around a third by removing dependencies on re and contextlib.
Python 3.13 New FeaturesMajor new features of the 3.13 series, compared to 3.12
Nearly annually, Python releases a new version. The most recent version, Python 3.13, will be available on May 8, 2024, following Python 3.12 in that order. This version introduced many new features and improvements. This is a pre-release of the next Python version, which introduced some new features as well as improvements to the existing ones. In this article, we will see what has been changed in Python version 3.13.
Table of Content
- A Better Interactive Interpreter
- Experimental Just-in-Time (JIT) Compilation
- Experimental Free-Threaded CPython
- Improved Error Reporting and Guidance
- Interactive Shell Makeover (New REPL)
- Incremental Garbage Collection
- Improved Error Reporting and Guidance
- Memory Optimization for Docstrings
- Enhance Performance in Modules
- Removal of Deprecated Modules (“Dead Batteries”)
- Conclusion