diff options
author | Thomas Heller <theller@ctypes.org> | 2002-07-29 14:27:41 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2002-07-29 14:27:41 (GMT) |
commit | 085358a3e208b4825dafa829798cfc125f56a2e4 (patch) | |
tree | ace1ac831a2e29283383fd65071c34805dd23e07 /Doc/api | |
parent | b9e0764d8bc610d90d5aed9d8a97fe7643a2eeec (diff) | |
download | cpython-085358a3e208b4825dafa829798cfc125f56a2e4.zip cpython-085358a3e208b4825dafa829798cfc125f56a2e4.tar.gz cpython-085358a3e208b4825dafa829798cfc125f56a2e4.tar.bz2 |
New functions for extension writers on Windows:
PyErr_SetExcFromWindowsErr(), PyErr_SetExcFromWindowsErrWithFilename().
Similar to PyErr_SetFromWindowsErrWithFilename() and
PyErr_SetFromWindowsErr(), but they allow to specify
the exception type to raise. Available on Windows.
See SF patch #576458.
Diffstat (limited to 'Doc/api')
-rw-r--r-- | Doc/api/exceptions.tex | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/api/exceptions.tex b/Doc/api/exceptions.tex index 7375dd7..f4e4ef0 100644 --- a/Doc/api/exceptions.tex +++ b/Doc/api/exceptions.tex @@ -208,6 +208,14 @@ for each thread. Availability: Windows. \end{cfuncdesc} +\begin{cfuncdesc}{PyObject*}{PyErr_SetExcFromWindowsErr}{PyObject *type, + int ierr} + Similar to \cfunction{PyErr_SetFromWindowsErr()}, with an additional + parameter specifying the exception type to be raised. + Availability: Windows. + \versionadded{2.3} +\end{cfuncdesc} + \begin{cfuncdesc}{PyObject*}{PyErr_SetFromWindowsErrWithFilename}{int ierr, char *filename} Similar to \cfunction{PyErr_SetFromWindowsErr()}, with the @@ -217,6 +225,14 @@ for each thread. Availability: Windows. \end{cfuncdesc} +\begin{cfuncdesc}{PyObject*}{PyErr_SetExcFromWindowsErrWithFilename} + {PyObject *type, int ierr, char *filename} + Similar to \cfunction{PyErr_SetFromWindowsErrWithFilename()}, with + an additional parameter specifying the exception type to be raised. + Availability: Windows. + \versionadded{2.3} +\end{cfuncdesc} + \begin{cfuncdesc}{void}{PyErr_BadInternalCall}{} This is a shorthand for \samp{PyErr_SetString(PyExc_TypeError, \var{message})}, where \var{message} indicates that an internal |