Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
subgroup/split check condition for interior nodes as well. This mean …
…that rest is not exactly subgroup(not condition)
  • Loading branch information
iritkatriel committed Dec 19, 2021
commit 7a13adb3afde28dc2203e808c6fa74210e1e7f37
7 changes: 6 additions & 1 deletion Doc/library/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -893,10 +893,15 @@ their subgroups based on the types of the contained exceptions.
``__context__`` and ``__note__`` fields. Empty nested groups are omitted
Comment thread
iritkatriel marked this conversation as resolved.
Outdated
from the result.

The condition is checked for all exceptions in the nested exception group,
including the top-level and any nested exception groups. If the condition is
true for such an exception group, it is included in the result in full.

.. method:: split(condition)

Like :meth:`subgroup`, but returns the pair ``(match, rest)`` where ``match``
is ``subgroup(condition)`` and ``rest`` is ``subgroup(not condition)``.
is ``subgroup(condition)`` and ``rest`` is the remainder, the non-matching
Comment thread
iritkatriel marked this conversation as resolved.
Outdated
part.

.. method:: derive(excs)

Expand Down