Which of the following Python/C API function will NOT always return NULL?

Questions & AnswersCategory: PythonWhich of the following Python/C API function will NOT always return NULL?
Geek Boy Staff asked 2 years ago

Which of the following Python/C API function will NOT always return NULL?
a. PyObject* PyErr_SetFromWindowsErr(int ierr)
b. PyObject* PyErr_SetFromErrnoWithFilename(PyObject *type, const char *filename)
c. PyObject* PyErr_SetFromErrno(PyObject *type)
d. PyObject* PyErr_NewException(char *name, PyObject *base, PyObject *dict)
e. PyObject* PyErr_Format(PyObject *exception, const char *format, …)