What is an exception group?
Exception handling
Audio flashcard · 0:18Nortren·
What is an exception group?
0:18
An exception group, introduced in Python 3.11 via PEP 654, is a way to raise and handle multiple exceptions at once. It is essential for concurrent code where several tasks may fail simultaneously. The except star syntax catches exceptions inside a group while letting unmatched ones propagate.
peps.python.org