diff options
Diffstat (limited to 'Doc/library/traceback.rst')
-rw-r--r-- | Doc/library/traceback.rst | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/traceback.rst b/Doc/library/traceback.rst index 7ac3cacd..a21ef8e 100644 --- a/Doc/library/traceback.rst +++ b/Doc/library/traceback.rst @@ -44,7 +44,11 @@ The module defines the following functions: * if *tb* is not ``None``, it prints a header ``Traceback (most recent call last):`` + * it prints the exception *etype* and *value* after the stack trace + + .. index:: single: ^; caret + * if *type(value)* is :exc:`SyntaxError` and *value* has the appropriate format, it prints the line where the syntax error occurred with a caret indicating the approximate position of the error. |