SwashBuckler001's picture
IdiomBench (part 6)
60f5111 verified
Raw History Blame Contribute Delete
249 Bytes
eg = ExceptionGroup("eg", [TypeError(12)])
eg.foo = 'foo'
try:
raise eg
except* TypeError as e:
e.foo = 'bar'
# ^----------- ``e`` is an ephemeral object that might get
# destroyed after the ``except*`` clause.
eg.foo