]> granicus.if.org Git - python/commit
Raise a TypeError if a float is passed when an integer is specified.
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 24 Jan 2003 22:15:21 +0000 (22:15 +0000)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>
Fri, 24 Jan 2003 22:15:21 +0000 (22:15 +0000)
commitb808e99d34dc27204d2c8ad07489c2ba84dd98f5
treed896af47fe81a84f6e22cd5ef5a01c87db84acaa
parent3422c99de1d1c001ebc1416e3efc1b10452347b5
Raise a TypeError if a float is passed when an integer is specified.
Calling PyInt_AsLong() on a float truncates it which is almost never
the desired behavior.  This closes SF bug #660144.
Python/getargs.c