Datasets:
File size: 184 Bytes
60f5111 | 1 2 3 4 5 6 | eg = MyExceptionGroup("eg", [TypeError(1), ValueError(2)], 42)
match, rest = eg.split(ValueError)
print(f'match: {match!r}: {match.errcode}')
print(f'rest: {rest!r}: {rest.errcode}')
|