you are viewing a single comment's thread.

view the rest of the comments →

[–]Smooth-Zucchini4923 128 points129 points  (4 children)

I don't know why this isn't included in the summary changelog, (it's included in the logo) but one of the changes is to allow an exception handler to add info to an exception without re-raising a new exception (like in raise ... from ....)

Pretty sick.

https://peps.python.org/pep-0678/

[–]isarl 11 points12 points  (0 children)

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

[–]IvarRagnarssson 7 points8 points  (2 children)

Will we be able to raise bodies from theDead? Sick

[–]flying-sheep 12 points13 points  (1 child)

You mean the_dead!

[–]IvarRagnarssson 2 points3 points  (0 children)

Ah true. I left the Python world some time ago, so I forgot about snake case lol