mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Changes by Mark Hammond related to the new WindowsError exception.
This commit is contained in:
parent
db0c9f7f5b
commit
65a75b0d52
1 changed files with 6 additions and 0 deletions
|
@ -2262,6 +2262,9 @@ PyObject *PyExc_UnboundLocalError;
|
|||
PyObject *PyExc_TypeError;
|
||||
PyObject *PyExc_ValueError;
|
||||
PyObject *PyExc_ZeroDivisionError;
|
||||
#ifdef MS_WINDOWS
|
||||
PyObject *PyExc_WindowsError;
|
||||
#endif
|
||||
|
||||
PyObject *PyExc_MemoryErrorInst;
|
||||
|
||||
|
@ -2303,6 +2306,9 @@ bltin_exc[] = {
|
|||
{"UnboundLocalError", &PyExc_UnboundLocalError, 1},
|
||||
{"TypeError", &PyExc_TypeError, 1},
|
||||
{"ValueError", &PyExc_ValueError, 1},
|
||||
#ifdef MS_WINDOWS
|
||||
{"WindowsError", &PyExc_WindowsError, 1},
|
||||
#endif
|
||||
{"ZeroDivisionError", &PyExc_ZeroDivisionError, 1},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue