| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2634a10 commit 74dcc6d
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,12 +41,21 @@ is a separate error indicator for each thread. | |||
| 41 | 41 | Either alphabetical or some kind of structure. | |
| 42 | 42 | ||
| 43 | 43 | ||
| 44 | - .. cfunction:: void PyErr_Print() | ||
| 44 | + .. cfunction:: void PyErr_PrintEx(int set_sys_last_vars) | ||
| 45 | 45 | ||
| 46 | 46 | Print a standard traceback to ``sys.stderr`` and clear the error indicator. | |
| 47 | 47 | Call this function only when the error indicator is set. (Otherwise it will | |
| 48 | 48 | cause a fatal error!) | |
| 49 | 49 | ||
| 50 | + If *set_sys_last_vars* is nonzero, the variables :data:`sys.last_type`, | ||
| 51 | + :data:`sys.last_value` and :data:`sys.last_traceback` will be set to the | ||
| 52 | + type, value and traceback of the printed exception, respectively. | ||
| 53 | + | ||
| 54 | + | ||
| 55 | + .. cfunction:: void PyErr_Print() | ||
| 56 | + | ||
| 57 | + Alias for ``PyErr_PrintEx(1)``. | ||
| 58 | + | ||
| 50 | 59 | ||
| 51 | 60 | .. cfunction:: PyObject* PyErr_Occurred() | |
| 52 | 61 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments