diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-01-24 22:15:21 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2003-01-24 22:15:21 (GMT) |
commit | b808e99d34dc27204d2c8ad07489c2ba84dd98f5 (patch) | |
tree | d896af47fe81a84f6e22cd5ef5a01c87db84acaa /Lib/mutex.py | |
parent | 3422c99de1d1c001ebc1416e3efc1b10452347b5 (diff) | |
download | cpython-b808e99d34dc27204d2c8ad07489c2ba84dd98f5.zip cpython-b808e99d34dc27204d2c8ad07489c2ba84dd98f5.tar.gz cpython-b808e99d34dc27204d2c8ad07489c2ba84dd98f5.tar.bz2 |
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.
Diffstat (limited to 'Lib/mutex.py')
0 files changed, 0 insertions, 0 deletions