[Tutor] eval and floating point

Senthil Kumaran orsenthil at gmail.com
Thu Jan 15 11:13:09 CET 2009


On Thu, Jan 15, 2009 at 9:42 AM, Bill Campbell <bill at celestial.net> wrote:

> Python does the Right Thing(tm) when dividing two integers,
> returning an integer result.
>

Unless it is python 3k, in which integer division (single /) can
result in float. Because int is a long by default. :-)

-- 
Senthil


More information about the Tutor mailing list