Re: [Python-Dev] Disallow float arguments where an integer is expected in Python 2.7.

2009-12-27 Thread Gregory P. Smith
On Mon, Dec 21, 2009 at 7:02 AM, Mark Dickinson dicki...@gmail.com wrote: In Python 2.7, PyArg_ParseTuple and friends currently accept a float argument where an integer is expected, but produce a DeprecationWarning in this case.  This can be seen in various places in Python proper:

[Python-Dev] Disallow float arguments where an integer is expected in Python 2.7.

2009-12-21 Thread Mark Dickinson
In Python 2.7, PyArg_ParseTuple and friends currently accept a float argument where an integer is expected, but produce a DeprecationWarning in this case. This can be seen in various places in Python proper: itertools.combinations(range(5), 2.0) __main__:1: DeprecationWarning: integer argument

Re: [Python-Dev] Disallow float arguments where an integer is expected in Python 2.7.

2009-12-21 Thread Brett Cannon
On Mon, Dec 21, 2009 at 07:02, Mark Dickinson dicki...@gmail.com wrote: In Python 2.7, PyArg_ParseTuple and friends currently accept a float argument where an integer is expected, but produce a DeprecationWarning in this case. This can be seen in various places in Python proper: