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