PEP0238 lament

Peter Hansen peter at engcorp.com
Tue Jul 24 21:49:33 EDT 2001


Andy Salnikov wrote:
> Guys, if you really need something returning floats for division, make it
> new operator, I guess everyone could be made happy with 1/2 == 0 and 1//2 ==
> 0.5.

Has anyone suggested the possibility (ugly though it may be) of 
preserving the existing behaviour of / and adding *two* new operators,
which implement float and integer division "correctly", without
breaking any existing code?

(I would really hate this, but I don't exactly like the 
alternatives yet either.)

-- 
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com



More information about the Python-list mailing list