Merged revisions 77218 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77218 | mark.dickinson | 2010-01-01 17:27:30 +0000 (Fri, 01 Jan 2010) | 5 lines
Issue #5080: turn the DeprecationWarning from float arguments passed
to integer PyArg_Parse* format codes into a TypeError. Add a
DeprecationWarning for floats passed with the 'L' format code, which
didn't previously have a warning.
........
diff --git a/Misc/NEWS b/Misc/NEWS
index daee69c..a751676 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -146,6 +146,13 @@
C-API
-----
+- Issue #5080: The argument parsing functions PyArg_ParseTuple,
+ PyArg_ParseTupleAndKeywords, PyArg_VaParse,
+ PyArg_VaParseTupleAndKeywords and PyArg_Parse now raise a
+ DeprecationWarning for float arguments passed with the 'L' format
+ code. This will become a TypeError in a future version of Python,
+ to match the behaviour of the other integer format codes.
+
- Issue #7033: function ``PyErr_NewExceptionWithDoc()`` added.
- Issue #7414: 'C' code wasn't being skipped properly (for keyword arguments)