diff -r bf5a899a5d7c Doc/library/exceptions.rst --- a/Doc/library/exceptions.rst Sun Apr 12 17:56:34 2015 -0400 +++ b/Doc/library/exceptions.rst Mon Apr 13 10:33:57 2015 -0400 @@ -99,6 +99,20 @@ tb = sys.exc_info()[2] raise OtherException(...).with_traceback(tb) + In this example, when the :exc:`OtherException` is raised the traceback + `tb` is chained behind latest traceback:: + + Traceback (most recent call last): + File "", line 2, in + SomeException + + During handling of the above exception, another exception occurred: + + Traceback (most recent call last): + File "", line 5, in + File "", line 2, in + OtherException + .. exception:: Exception