docs: Add sys.print_exception().
This commit is contained in:
parent
b4fe6e28eb
commit
6c3fc74656
@ -12,6 +12,11 @@ Functions
|
|||||||
Raise a ``SystemExit`` exception. If an argument is given, it is the
|
Raise a ``SystemExit`` exception. If an argument is given, it is the
|
||||||
value given to ``SystemExit``.
|
value given to ``SystemExit``.
|
||||||
|
|
||||||
|
.. function:: print_exception(exc, [file])
|
||||||
|
|
||||||
|
Print exception with a traceback to a file-like object ``file`` (or
|
||||||
|
``sys.stdout`` by default).
|
||||||
|
|
||||||
Constants
|
Constants
|
||||||
---------
|
---------
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user