The latest version of Python is “the best ever”, say devs


The latest version of the programming language Python, 3.11 has been unveiled, with its development team claiming that the new edition might just be the best yet.
In the release notes (opens in new tab), Pablo Galindo Salgado, Python Steering Council member and the release manager for the current version, alongside fellow team members Steve Dower and Ned Deily, wrote the team has “put a lot of effort into making 3.11 the best version of Python possible”.
They also listed the keynote improvements in Python 3.11: “better tracebacks”, “faster Python”, “exception groups and except*”, in addition to offering various improvements to typing.
Python 3.11’s latest improvements
The Python release team claimed in the release notes that Python 3.11 “is up to 10-60 percent faster than Python 3.10”, and reported measuring 1.22x speedups on average, courtesy of the Faster CPython Project (opens in new tab).
Though it is worth pointing out this likely only applies to pure Python code, and Python itself has never been the fastest programming language out there, that’s still impressive.
Several Python Enhancement Proposals (PEPs) promise to offer more concrete quality of life improvements.
PEP 657 (opens in new tab), for example, will introduce more detailed error reports for tracebacks – reports detailing function calls within a python script, making debugging that much more straightforward. PEP 680 (opens in new tab), meanwhile, means that Python will be able to parse TOML files, commonly used for configuration files without the need for an external library.
However, as The Register (opens in new tab) reports, PYC files compiled by the Python interpreter are now, on average, 22% larger, and while the Python team stand by the change, they have issued an opt-out, in the form of “PYTHONNODEBUGRANGES”, a new environmental variable.
PEP 654 (opens in new tab), on the other hand, allows for handling several exceptions at once with the introduction of exception groups and the new except* syntax.
Python 3.11 should also encourage developers to use data types more, thanks to some new features, and more subtle changes that give developers more control in the backend.
Perhaps the best illustration of this is PEP 675 (opens in new tab), which allows users to declare arbitrary string types, but there’s also PEP 673 (opens in new tab) (the Self Type), an intuitive way to annotate methods that return instances of the same class. Finally, PEP 646 (opens in new tab) (Variadic Generics), allowing generics to store several types at once for assignment to objects later.
Audio player loading… The latest version of the programming language Python, 3.11 has been unveiled, with its development team claiming that the new edition might just be the best yet. In the release notes (opens in new tab), Pablo Galindo Salgado, Python Steering Council member and the release manager for…
Recent Posts
- Reddit is reportedly experiencing some outages
- Google may be close to launching YouTube Premium Lite
- Someone wants to sell you a digital version of the antiquated typewriter but without a glued-on keyboard (no really)
- Carbon removal is the next big fossil fuel boom, oil company says
- This is probably the best looking docking station I’ve ever seen in my entire life – and I can’t wait to test it
Archives
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- December 2023
- November 2023
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- February 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- August 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- September 2018
- October 2017
- December 2011
- August 2010