From 9de5eb278d4bb7834c1abf15ddefdf4c85b29465 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Fri, 10 Jun 2016 23:06:56 +0300 Subject: [PATCH] docs/sys: Detailed description of print_exception() diff from traceback module. --- docs/library/sys.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/library/sys.rst b/docs/library/sys.rst index b5a9138c07..ebde2b191c 100644 --- a/docs/library/sys.rst +++ b/docs/library/sys.rst @@ -21,7 +21,12 @@ Functions .. admonition:: Difference to CPython :class: attention - This function appears in the ``traceback`` module in CPython. + This is simplified version of a function which appears in the + ``traceback`` module in CPython. Unlike ``traceback.print_exception()``, + this function takes just exception value instead of exception type, + exception value, and traceback object; `file` argument should be + positional; further arguments are not support. Compliant + ``traceback`` module can be found in micropython-lib. Constants ---------