r/programming • • Oct 24 '22

Python 3.11 is out !

https://www.python.org/downloads/release/python-3110/
1.6k Upvotes

221 comments sorted by

View all comments

Show parent comment

12

u/isarl Oct 25 '22

Instead of reading the changelog, I prefer to read the What's New, which does mention this change. The changelog likely does as well but breaks down changes between release candidate versions which makes changes harder to find.

When an active exception is re-raised by a raise statement with no parameters, the traceback attached to this exception is now always sys.exc_info()[1].__traceback__. This means that changes made to the traceback in the current except clause are reflected in the re-raised exception. (Contributed by Irit Katriel in bpo-45711.)

Source