Traceback (most recent call last):
  File "PYGOLANG/golang/__init__.py", line ..., in _
    return f(*argv, **kw)
  File "golang_test_defer_excchain.py", line 42, in main
    raise RuntimeError("err")
RuntimeError: err

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "PYGOLANG/golang/__init__.py", line ..., in __exit__
    ...
  File "golang_test_defer_excchain.py", line 31, in d1
    raise RuntimeError("d1: aaa")
RuntimeError: d1: aaa

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "PYGOLANG/golang/__init__.py", line ..., in __exit__
    ...
  File "golang_test_defer_excchain.py", line 33, in d2
    1/0
ZeroDivisionError: ...

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  ... "golang_test_defer_excchain.py", line 45, in <module>
    main()
  ...
  File "PYGOLANG/golang/__init__.py", line ..., in _
    return f(*argv, **kw)
  File "PYGOLANG/golang/__init__.py", line ..., in __exit__
    ...
  File "PYGOLANG/golang/__init__.py", line ..., in __exit__
    ...
  File "PYGOLANG/golang/__init__.py", line ..., in __exit__
    ...
  File "golang_test_defer_excchain.py", line 35, in d3
    raise RuntimeError("d3: bbb")
RuntimeError: d3: bbb
