Member-only story
This is what’s new in Python 3.11
Welcome back! Python is already showcasing what’s going to be coming in Python 3.11, so let’s take a look at some of the new features coming in this future version of Python, if you want to take a look at the entire release log (thats constantly being updated), check out the link below:
https://docs.python.org/3.11/whatsnew/3.11.html
Starting off, one of the newest changes are the enhanced error locations in tracebacks, this essentially gives better detail whenever an error comes up, take a look at the example from their website below:
There were also some bug fixes, specifically with TypeError and AttributeError’s, this will essentially make it a bit easier to troubleshoot certain issues. On top of this, there were some improvements with some built in Python modules. The Math module got several updates, there is a new math.cbrt() to get the cube root of x, as well as some other changes. There is a change with sqlite3, allowing you to disable the authorizer by passing None to set_authorizer(). There…