[Python-Dev] [python] trunc() (original) (raw)

"Martin v. Löwis" martin at v.loewis.de
Fri Jan 25 00:46:43 CET 2008


If the ambiguity is that 'int' behaviour is unspecified for floats - is it naive to suggest we specify the behaviour?

The concern is that whatever gets specified is arbitrary. There are many ways how an int can be constructed from a float, so why is any such way better than the others, and deserves to be the meaning of int()?

Regards, Martin



More information about the Python-Dev mailing list