Datasets:
File size: 249 Bytes
60f5111 | 1 2 3 4 5 6 7 8 9 10 | 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
|