Mercurial > cpython-lru_cache-weakref
comparison Python/future.c @ 27363:eb1e529fdfdf legacy-trunk
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.
| author | Neil Schemenauer <nascheme@enme.ucalgary.ca> |
|---|---|
| date | Fri, 24 Jan 2003 22:15:21 +0000 |
| parents | cc05c2c8660e |
| children | f7474d31ba3f |
comparison
equal
deleted
inserted
replaced
| 27362:4a49b5aa5d21 | 27363:eb1e529fdfdf |
|---|
