It had been in the testing phase for some time, and the stable version has already been released. This programming language with the name of a snake is one of the favorites of many developers, so the launch of Python 3.11 It is an event of some importance. It is a major update, or medium if you prefer to label the ones that change the first number as major, but there is no denying that it has improved a lot.
At Phoronix, a medium that owes much of its fame to its software and hardware tests, they were testing the performance of Python 3.11 and confirmed that it is between 10% and 60% faster than Python 3.10, which until now was the most up-to-date stable version. But not absolutely everything is good news, at least for Linux users, since an update like this could break compatibility with software that we are using, and a example of this It is what we Kodi users on Linux are suffering since it was uploaded to «Matrix».
General Python 3.11 Changes
Lo most notably of Python 3.11 includes that fine-grained error locations are now included in plots, which, in theory, will allow better recognition of failures; exception groups and except*
; in tomllib, support for TOML parsing has been added to the standard library; introduced groups of tasks in asyncio; atomic grouping ((?>…)) and possessive quantifiers (*+, ++, ?+, {m,n}+) are now supported in regular expressions.
But the highlight is the speed:
The Faster CPython project is already yielding some interesting results. Python 3.11 is up to 10-60% faster than Python 3.10. On average, we have measured a speed increase of 1,22 times in the standard test suite.
Although everything looks very good, we must bear in mind that changes in programming languages can cause problems, like Kodi's. Developers must adapt their code to the new versions, and if not all the code, then the "camouflaged" version so that their work is not stolen. Therefore, if something like this is depended on, it is better to hold the update as long as possible.
Python 3.11 has been announced today (yesterday in the project's time zone), and its tarball can now be downloaded from the download page of the project. Its arrival in the official repositories will depend on the philosophy of the distribution that we are using, but in most cases it will take weeks or even months.
More information and image logo: python forum.