]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#11484: remove paragraph about with_traceback from 2.7 doc.
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 13 Mar 2011 20:55:41 +0000 (22:55 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sun, 13 Mar 2011 20:55:41 +0000 (22:55 +0200)
Doc/library/exceptions.rst

index 58867685675b2341a436191173bf08e3650ab765..8bd903a31e5801a86bdaa28371f80dced6c77734 100644 (file)
@@ -63,18 +63,6 @@ The following exceptions are only used as base classes for other exceptions.
       assign a special meaning to the elements of this tuple, while others are
       usually called only with a single string giving an error message.
 
-   .. method:: with_traceback(tb)
-
-      This method sets *tb* as the new traceback for the exception and returns
-      the exception object.  It is usually used in exception handling code like
-      this::
-
-         try:
-             ...
-         except SomeException:
-             tb = sys.exc_info()[2]
-             raise OtherException(...).with_traceback(tb)
-
 
 .. exception:: Exception