rexec in jython??
Kent Johnson
kent at kentsjohnson.com
Mon Feb 6 06:06:36 EST 2006
Mark Fink wrote:
> one minor issue is still left:
> correct me if I am wrong: result of 2/-3 is 0 (at least this is how it
> is defined in the testcase)
> In Jython 2.1.3:
>
>>>>2/-3
>
> -1
CPython gives the same result and the language reference says, "Plain or
long integer division yields an integer of the same type; the result is
that of mathematical division with the `floor' function applied to the
result." so this seems to be intentional.
Kent
More information about the Python-list
mailing list