Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4064089 commit 4173772Copy full SHA for 4173772
1 file changed
Doc/c-api/exceptions.rst
@@ -53,8 +53,12 @@ Printing and clearing
53
.. c:function:: void PyErr_PrintEx(int set_sys_last_vars)
54
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!)
+ **Unless** the error is a ``SystemExit``. In that case the no traceback
+ 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!
62
63
If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`,
64
:data:`sys.last_value` and :data:`sys.last_traceback` will be set to the
0 commit comments