Skip to content

Commit 6c3fc74

Browse files
committed
docs: Add sys.print_exception().
1 parent b4fe6e2 commit 6c3fc74

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/library/sys.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ Functions
1212
Raise a ``SystemExit`` exception. If an argument is given, it is the
1313
value given to ``SystemExit``.
1414

15+
.. function:: print_exception(exc, [file])
16+
17+
Print exception with a traceback to a file-like object ``file`` (or
18+
``sys.stdout`` by default).
19+
1520
Constants
1621
---------
1722

0 commit comments

Comments
 (0)