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 | d7849708971771b405afa35832958ed61ae16b78 (patch) | |
tree | fefefb1eba8901fe0fc4176ae44baa9c5dba5559 /documentation/index.rst | |
parent | ce73aa38a1cb8bd244dcae1e2a78eb2ffbe6b1ae (diff) | |
download | six-git-d7849708971771b405afa35832958ed61ae16b78.tar.gz |
say that the reraise frame is attached to any tb (fixes #79)
Diffstat (limited to 'documentation/index.rst')
-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) |