From: Ezio Melotti Date: Sun, 13 Mar 2011 20:55:41 +0000 (+0200) Subject: #11484: remove paragraph about with_traceback from 2.7 doc. X-Git-Tag: v2.7.2rc1~257^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ad797b699df6dcbe360ad86631c54fdb7a31a188;p=thirdparty%2FPython%2Fcpython.git #11484: remove paragraph about with_traceback from 2.7 doc. --- diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst index 58867685675b..8bd903a31e58 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