diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-07-13 12:03:29 -0700 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-07-13 12:03:29 -0700 |
commit | f0013a9984d7b15bfc2326a908fd7c13b750cc2c (patch) | |
tree | fefefb1eba8901fe0fc4176ae44baa9c5dba5559 | |
parent | 880f96fc580b88666b13f79f80c43e0e9d365f93 (diff) | |
download | six-f0013a9984d7b15bfc2326a908fd7c13b750cc2c.tar.gz |
say that the reraise frame is attached to any tb (fixes #79)
-rw-r--r-- | documentation/index.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/documentation/index.rst b/documentation/index.rst index 02f3898..49aed01 100644 --- a/documentation/index.rst +++ b/documentation/index.rst @@ -266,7 +266,10 @@ Python 2 and 3. Reraise an exception, possibly with a different traceback. In the simple case, ``reraise(*sys.exc_info())`` with an active exception (in an except block) reraises the current exception with the last traceback. A different - traceback can be specified with the *exc_traceback* parameter. + traceback can be specified with the *exc_traceback* parameter. Note that + since the exception reraising is done within the :func:`reraise` function, + Python will attach the call frame of :func:`reraise` to whatever traceback is + raised. .. function:: with_metaclass(metaclass, *bases) |