← index #9643PR #12621
Related · high · value 1.415
QUERY · ISSUE

Chained exceptions?

openby jepleropened 2022-10-16updated 2022-10-17
enhancement

I've prototyped chained exceptions, though I did it against CircuitPython as a base: https://github.com/adafruit/circuitpython/pull/7069

I'd be happy to prepare a version of this for upstreaming if there's interest.

CANDIDATE · PULL REQUEST

py/vm.c: don't complain about "raise … from None".

mergedby smurfixopened 2023-10-07updated 2023-10-08
bugpy-core

raise SomeException() from None is a common Python idiom to suppress chained exceptions and thus shouldn't trigger a warning on a version of Python that doesn't support them in the first place.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied