25 Jul
2001
25 Jul
'01
1:15 a.m.
To me this sounds like a huge mistake -- it's a different escalation rule than any other language.
From: Tom Jenkins <tjenkins@devis.com>
For those of you that don't know, PEP238 which is still be thought about, will change how the division operand ('/') works with integers. Currently the following is what happens in python int/int == int 2/1 == 2 3/2 == 1 3/4 == 0
under PEP238 this will change to int/int == float 2/1 == 2.0 3/2 == 1.5 3/4 == 0.75