mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
#11484: remove paragraph about with_traceback from 2.7 doc.
This commit is contained in:
parent
8b78a9d8ca
commit
ad797b699d
1 changed files with 0 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue