File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -53,8 +53,12 @@ Printing and clearing
53
53
.. c:function:: void PyErr_PrintEx(int set_sys_last_vars)
54
54
55
55
Print a standard traceback to ``sys.stderr`` and clear the error indicator.
56
- Call this function only when the error indicator is set. (Otherwise it will
57
- cause a fatal error!)
56
+ **Unless** the error is a ``SystemExit``. In that case the no traceback
57
+ is printed and Python process will exit with the error code specified by
58
+ the ``SystemExit`` instance.
59
+
60
+ Call this function **only** when the error indicator is set. Otherwise it
61
+ will cause a fatal error!
58
62
59
63
If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`,
60
64
:data:`sys.last_value` and :data:`sys.last_traceback` will be set to the
You can’t perform that action at this time.
0 commit comments