summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2003-02-04 20:59:40 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2003-02-04 20:59:40 (GMT)
commit5042da6b1e567039951cdfe6b822dd725012bdf1 (patch)
treef23911306c5e8ecee66e3b8a7dcb1d0259221c71 /Misc
parent731098b3ff6e37cc0950397a0e2bd868f4d6ff86 (diff)
downloadcpython-5042da6b1e567039951cdfe6b822dd725012bdf1.zip
cpython-5042da6b1e567039951cdfe6b822dd725012bdf1.tar.gz
cpython-5042da6b1e567039951cdfe6b822dd725012bdf1.tar.bz2
If a float is passed where a int is expected, issue a DeprecationWarning
instead of raising a TypeError. Closes #660144 (again).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS7
1 files changed, 4 insertions, 3 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index a90faa6..67e84df 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -223,9 +223,10 @@ Build
C API
-----
-- The PyArg_Parse functions now raise a TypeError instead of truncating float
- arguments if an integer is specified (this affects the 'b', 'B', 'h', 'H',
- 'i', and 'l' codes).
+- The PyArg_Parse functions now issue a DeprecationWarning if a float
+ argument is provided when an integer is specified (this affects the 'b',
+ 'B', 'h', 'H', 'i', and 'l' codes). Future versions of Python will
+ raise a TypeError.
New platforms