Language change and code breaks

Emile van Sebille emile at fenx.com
Thu Jul 12 14:17:14 EDT 2001


<pfenn at mmm.com> wrote in message
news:mailman.994958301.16016.python-list at python.org...
>
<snip>
>
> Is there really much code that depends on 1/3 == 0 being true?

I use it.  I imagine that for as long as it's been that way, if everyone
were constantly writing some form of float(x)/y or 1.0*x/y or x/7.0 all the
time and never using is as integer math, it likely would have been changed
long before I started with python... ;-)

--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list