diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-02-04 20:59:40 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-02-04 20:59:40 (GMT) |
commit | 5042da6b1e567039951cdfe6b822dd725012bdf1 (patch) | |
tree | f23911306c5e8ecee66e3b8a7dcb1d0259221c71 /Misc | |
parent | 731098b3ff6e37cc0950397a0e2bd868f4d6ff86 (diff) | |
download | cpython-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/NEWS | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |