diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-07 00:18:37 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-12-10 20:31:38 +0200 |
commit | 6c3fc7465692ffe4c3ebd9983b405006ea7178a7 (patch) | |
tree | 5d8395131d7846b58d17cbd91c128a22c1234d17 | |
parent | b4fe6e28eb3bbf70b1f1da08a13a40a4ac3ee1db (diff) |
docs: Add sys.print_exception().
-rw-r--r-- | docs/library/sys.rst | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst index 8e05ac23f..f5951f811 100644 --- a/docs/library/sys.rst +++ b/docs/library/sys.rst @@ -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 --------- |