[Python-Dev] re: division

Tim Peters tim_one@email.msn.com
Wed, 5 Apr 2000 23:10:39 -0400


[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>.