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.
Showing
Please
register
or
sign in
to comment
Calling PyInt_AsLong() on a float truncates it which is almost never the desired behavior. This closes SF bug #660144.