File tree 1 file changed +10
-0
lines changed
1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -934,6 +934,16 @@ \chapter{Exception Handling \label{exceptionHandling}}
934
934
error.
935
935
\end {cfuncdesc }
936
936
937
+ \begin {cfuncdesc }{PyObject*}{PyErr_SetFromErrnoWithFilename}{PyObject *type,
938
+ char *filename}
939
+ Similar to \cfunction {PyErr_SetFromErrno()}, with the additional
940
+ behavior that if \var {filename} is not \NULL , it is passed to the
941
+ constructor of \var {type} as a third parameter. In the case of
942
+ exceptions such as \exception {IOError} and \exception {OSError}, this
943
+ is used to define the \member {filename} attribute of the exception
944
+ instance.
945
+ \end {cfuncdesc }
946
+
937
947
\begin {cfuncdesc }{void}{PyErr_BadInternalCall}{}
938
948
This is a shorthand for \samp {PyErr_SetString(PyExc_TypeError,
939
949
\var {message})}, where \var {message} indicates that an internal
You can’t perform that action at this time.
0 commit comments