#11484: remove paragraph about with_traceback from 2.7 doc.

This commit is contained in:
Ezio Melotti 2011-03-13 22:55:41 +02:00
parent 8b78a9d8ca
commit ad797b699d

View 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 assign a special meaning to the elements of this tuple, while others are
usually called only with a single string giving an error message. 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 .. exception:: Exception