Introduce OverflowWarning -- to be issued when short int operations

are overflowing and a long int operation is substituted.
This commit is contained in:
Guido van Rossum 2001-08-23 02:56:07 +00:00
parent 7c198d3cde
commit ae347b33be
2 changed files with 8 additions and 0 deletions

View file

@ -66,6 +66,7 @@ extern DL_IMPORT(PyObject *) PyExc_Warning;
extern DL_IMPORT(PyObject *) PyExc_UserWarning;
extern DL_IMPORT(PyObject *) PyExc_DeprecationWarning;
extern DL_IMPORT(PyObject *) PyExc_SyntaxWarning;
extern DL_IMPORT(PyObject *) PyExc_OverflowWarning;
extern DL_IMPORT(PyObject *) PyExc_RuntimeWarning;