File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 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:
314314
315315 If the code within the :keyword: `!with ` block raises a
316316 :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.
318320
319321 .. versionadded :: 3.4
320322
Original file line number Diff line number Diff line change @@ -989,7 +989,8 @@ their subgroups based on the types of the contained exceptions.
989989 Returns an exception group with the same :attr: `message `, but which
990990 wraps the exceptions in ``excs ``.
991991
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
993994 subclass needs to override it in order to make :meth: `subgroup `
994995 and :meth: `split ` return instances of the subclass rather
995996 than :exc: `ExceptionGroup `.
You can’t perform that action at this time.
0 commit comments