Skip to content

Commit

Permalink
docs: Add sys.print_exception().
Browse files Browse the repository at this point in the history
  • Loading branch information
pfalcon committed Dec 10, 2014
1 parent b4fe6e2 commit 6c3fc74
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/library/sys.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
---------

Expand Down

0 comments on commit 6c3fc74

Please sign in to comment.