File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,9 @@ Functions and classes provided:
314
314
315
315
If the code within the :keyword: `!with ` block raises a
316
316
:exc: `BaseExceptionGroup `, suppressed exceptions are removed from the
317
- group. If any exceptions in the group are not suppressed, a group containing them is re-raised.
317
+ group. Any exceptions of the group which are not suppressed are re-raised in
318
+ a new group which is created using the original group's :meth: `~BaseExceptionGroup.derive `
319
+ method.
318
320
319
321
.. versionadded :: 3.4
320
322
Original file line number Diff line number Diff line change @@ -989,7 +989,8 @@ their subgroups based on the types of the contained exceptions.
989
989
Returns an exception group with the same :attr: `message `, but which
990
990
wraps the exceptions in ``excs ``.
991
991
992
- This method is used by :meth: `subgroup ` and :meth: `split `. A
992
+ This method is used by :meth: `subgroup ` and :meth: `split `, which
993
+ are used in various contexts to break up an exception group. A
993
994
subclass needs to override it in order to make :meth: `subgroup `
994
995
and :meth: `split ` return instances of the subclass rather
995
996
than :exc: `ExceptionGroup `.
You can’t perform that action at this time.
0 commit comments