Note that Python stopped generating OverflowWarning in 2.4, a release

after that was planned to occur.
This commit is contained in:
Tim Peters 2004-08-25 01:57:46 +00:00
parent 5cac22671f
commit e42649dc7a
1 changed files with 7 additions and 1 deletions

View File

@ -236,7 +236,13 @@ OverflowWarning
Here are the rules that guide warnings generated in situations
that currently raise OverflowError. This applies to transition
phase A.
phase A. Historical note: despite that phase A was completed in
Python 2.2, and phase B0 in Python 2.3, nobody noticed that
OverflowWarning was still generated in Python 2.3. It was finally
disabled in Python 2.4. The Python builtin OverflowWarning, and
the corresponding C API PyExc_OverflowWarning, are no longer
generated or used in Python 2.4, but will remain for the (unlikely)
case of user code until Python 2.5.
- A new warning category is introduced, OverflowWarning. This is
a built-in name.