summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/sys.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/library/sys.rst')
-rw-r--r--docs/library/sys.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/library/sys.rst b/docs/library/sys.rst
index 8e05ac23f1..f5951f8116 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
---------