[Python-Dev] re: division

Christopher Petrilli petrilli@amber.org
Wed, 5 Apr 2000 23:16:28 -0400


Tim Peters [tim_one@email.msn.com] wrote:
> [Greg Ward]
> > ...
> > In other words:
> > 
> >   5 div 3 = 5.__div__(3)  = operator.div(5,3)  = 1
> >   5 / 3   = 5.__fdiv__(3) = operator.fdiv(5,3) = 1.6666667
> > 
> > (where I have used artistic license in applying __div__ to actual
> > numbers -- you know what I mean).
> 
> +1 from me provided you can sneak the new keyword past Guido <1/3 wink>.

+1 from me as well.  I spent a little time going through all my code,
and looking through Zope as well, and I couldn't find any place I used 
'div' as a variable, much less any place I depended on this behaviour, 
so I don't think my code would break in any odd ways.

The only thing I can imagine is some printed text formatting issues.

Chris
-- 
| Christopher Petrilli
| petrilli@amber.org