Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62a21a2

Browse files
committed
New global variables: PyExc_EnvironmentError and PyExc_OSError
New function: PyErr_SetFromErrnoWithFilename(PyObject* char*)
1 parent be26010 commit 62a21a2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Include/pyerrors.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ extern DL_IMPORT(PyObject *) PyExc_AssertionError;
6262
extern DL_IMPORT(PyObject *) PyExc_AttributeError;
6363
extern DL_IMPORT(PyObject *) PyExc_EOFError;
6464
extern DL_IMPORT(PyObject *) PyExc_FloatingPointError;
65+
extern DL_IMPORT(PyObject *) PyExc_EnvironmentError;
6566
extern DL_IMPORT(PyObject *) PyExc_IOError;
67+
extern DL_IMPORT(PyObject *) PyExc_OSError;
6668
extern DL_IMPORT(PyObject *) PyExc_ImportError;
6769
extern DL_IMPORT(PyObject *) PyExc_IndexError;
6870
extern DL_IMPORT(PyObject *) PyExc_KeyError;
@@ -86,6 +88,7 @@ extern DL_IMPORT(PyObject *) PyExc_MemoryErrorInst;
8688
extern int PyErr_BadArgument Py_PROTO((void));
8789
extern PyObject *PyErr_NoMemory Py_PROTO((void));
8890
extern PyObject *PyErr_SetFromErrno Py_PROTO((PyObject *));
91+
extern PyObject *PyErr_SetFromErrnoWithFilename Py_PROTO((PyObject *, char *));
8992
extern PyObject *PyErr_Format Py_PROTO((PyObject *, const char *, ...));
9093

9194
extern void PyErr_BadInternalCall Py_PROTO((void));

0 commit comments

Comments
 (0)