SwashBuckler001's picture
IdiomBench (part 6)
60f5111 verified
Raw History Blame Contribute Delete
208 Bytes
class MyExceptionGroup(BaseExceptionGroup):
pass
eg = MyExceptionGroup("eg", [ValueError(1), KeyboardInterrupt(2)])
match, rest = eg.split(ValueError)
print(f'match: {match!r}')
print(f'rest: {rest!r}')