summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-25 02:14:08 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-25 02:14:08 (GMT)
commitc8854434790d3a281f0ea5a4714e5c01414413b0 (patch)
treef6edfa8738087c52d1fb4e077bba738f2f42cd49 /Python
parent1fa040ba73db700debd9f5079fa2083a0937f8b6 (diff)
downloadcpython-c8854434790d3a281f0ea5a4714e5c01414413b0.zip
cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.tar.gz
cpython-c8854434790d3a281f0ea5a4714e5c01414413b0.tar.bz2
Stop producing or using OverflowWarning. PEP 237 thought this would
happen in 2.3, but nobody noticed it still was getting generated (the warning was disabled by default). OverflowWarning and PyExc_OverflowWarning should be removed for 2.5, and left notes all over saying so.
Diffstat (limited to 'Python')
-rw-r--r--Python/exceptions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c
index 4642046..2fd74bc 100644
--- a/Python/exceptions.c
+++ b/Python/exceptions.c
@@ -1560,7 +1560,7 @@ PyDoc_STRVAR(SyntaxWarning__doc__,
"Base class for warnings about dubious syntax.");
PyDoc_STRVAR(OverflowWarning__doc__,
-"Base class for warnings about numeric overflow.");
+"Base class for warnings about numeric overflow. Won't exist in Python 2.5.");
PyDoc_STRVAR(RuntimeWarning__doc__,
"Base class for warnings about dubious runtime behavior.");
@@ -1635,6 +1635,7 @@ PyObject *PyExc_UserWarning;
PyObject *PyExc_DeprecationWarning;
PyObject *PyExc_PendingDeprecationWarning;
PyObject *PyExc_SyntaxWarning;
+/* PyExc_OverflowWarning should be removed for Python 2.5 */
PyObject *PyExc_OverflowWarning;
PyObject *PyExc_RuntimeWarning;
PyObject *PyExc_FutureWarning;
@@ -1726,6 +1727,7 @@ static struct {
{"PendingDeprecationWarning", &PyExc_PendingDeprecationWarning, &PyExc_Warning,
PendingDeprecationWarning__doc__},
{"SyntaxWarning", &PyExc_SyntaxWarning, &PyExc_Warning, SyntaxWarning__doc__},
+ /* OverflowWarning should be removed for Python 2.5 */
{"OverflowWarning", &PyExc_OverflowWarning, &PyExc_Warning,
OverflowWarning__doc__},
{"RuntimeWarning", &PyExc_RuntimeWarning, &PyExc_Warning,