[Python-Dev] trunc() (original) (raw)
Steve Holden steve at holdenweb.com
Sat Jan 26 13:38:09 CET 2008
- Previous message: [Python-Dev] trunc()
- Next message: [Python-Dev] trunc()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Terry Reedy wrote:
"Guido van Rossum" <guido at python.org> wrote in message news:ca471dc20801251132j7a758bc5uc076e859dd9f84b0 at mail.gmail.com... | Does no-one thinks it means round(f) either?
Not me. Int should truncate, so trunc() not needed unless is does something different. Like returning a value of the same type as the input? int(), being a call to a type, should never return a value of another type.
regards Steve
Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
- Previous message: [Python-Dev] trunc()
- Next message: [Python-Dev] trunc()
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]