Commit 6c3fc746 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

docs: Add sys.print_exception().

parent b4fe6e28
......@@ -12,6 +12,11 @@ Functions
Raise a ``SystemExit`` exception. If an argument is given, it is the
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
---------
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment