diff options
author | Barry Warsaw <barry@python.org> | 1997-09-16 21:51:14 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-09-16 21:51:14 (GMT) |
commit | 412cdc2284693c07a3ab7c812284b0a95ffa0724 (patch) | |
tree | 6be2fcb282824640af6f12e62ba31d17bbd5b17b /Python | |
parent | 25131faffeb61e1678f38bbf188628f2dcca4ebc (diff) | |
download | cpython-412cdc2284693c07a3ab7c812284b0a95ffa0724.zip cpython-412cdc2284693c07a3ab7c812284b0a95ffa0724.tar.gz cpython-412cdc2284693c07a3ab7c812284b0a95ffa0724.tar.bz2 |
[Py_Exc]NumberError => [Py_Exc]ArithmeticError
Diffstat (limited to 'Python')
-rw-r--r-- | Python/bltinmodule.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 2c858ec..65cfa6f 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1726,7 +1726,7 @@ static PyMethodDef builtin_methods[] = { PyObject *PyExc_Exception; PyObject *PyExc_StandardError; -PyObject *PyExc_NumberError; +PyObject *PyExc_ArithmeticError; PyObject *PyExc_LookupError; PyObject *PyExc_AssertionError; @@ -1760,7 +1760,7 @@ static struct bltin_exc[] = { {"Exception", &PyExc_Exception, 0}, {"StandardError", &PyExc_StandardError, 0}, - {"NumberError", &PyExc_NumberError, 0}, + {"ArithmeticError", &PyExc_ArithmeticError, 0}, {"LookupError", &PyExc_LookupError, 0}, {"AssertionError", &PyExc_AssertionError, 1}, {"AttributeError", &PyExc_AttributeError, 1}, @@ -1887,14 +1887,14 @@ initerrors(dict) PyTuple_SET_ITEM(PyExc_LookupError, 1, PyExc_KeyError); PyDict_SetItemString(dict, "LookupError", PyExc_LookupError); - PyExc_NumberError = PyTuple_New(3); + PyExc_ArithmeticError = PyTuple_New(3); Py_INCREF(PyExc_OverflowError); - PyTuple_SET_ITEM(PyExc_NumberError, 0, PyExc_OverflowError); + PyTuple_SET_ITEM(PyExc_ArithmeticError, 0, PyExc_OverflowError); Py_INCREF(PyExc_ZeroDivisionError); - PyTuple_SET_ITEM(PyExc_NumberError, 1, PyExc_ZeroDivisionError); + PyTuple_SET_ITEM(PyExc_ArithmeticError, 1, PyExc_ZeroDivisionError); Py_INCREF(PyExc_FloatingPointError); - PyTuple_SET_ITEM(PyExc_NumberError, 2, PyExc_FloatingPointError); - PyDict_SetItemString(dict, "NumberError", PyExc_NumberError); + PyTuple_SET_ITEM(PyExc_ArithmeticError, 2, PyExc_FloatingPointError); + PyDict_SetItemString(dict, "ArithmeticError", PyExc_ArithmeticError); PyExc_StandardError = PyTuple_New(exccnt-1); for (i = 1; bltin_exc[i].name; i++) { |