[Zope] Future watch: how will python division change affect zope?

marc lindahl marc@bowery.com
Tue, 24 Jul 2001 21:15:26 -0400


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
>