From ad797b699df6dcbe360ad86631c54fdb7a31a188 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Sun, 13 Mar 2011 22:55:41 +0200 Subject: #11484: remove paragraph about with_traceback from 2.7 doc. --- Doc/library/exceptions.rst | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 5886768..8bd903a 100644 --- a/Doc/library/exceptions.rst +++ b/Doc/library/exceptions.rst @@ -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 -- cgit v0.12