[Python-Dev] [python] trunc() (original) (raw)
"Martin v. Löwis" martin at v.loewis.de
Fri Jan 25 00:46:43 CET 2008
- Previous message: [Python-Dev] [python] trunc()
- Next message: [Python-Dev] [python] trunc()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] [python] trunc()
- Next message: [Python-Dev] [python] trunc()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]