Python vs Ruby

Niklas Frykholm r2d2 at mao.acc.umu.se
Tue Jan 30 03:23:00 EST 2001


>>AND I WISH THEY WOULD BOTH STOP DOING
>>
>>    - Automatic promotion of integers to floats...
>
>Where does Python automatically change ints to floats (except in the
>return value of an expression that *already* contains a float)?

That's when. I think 3 / 2.0 should throw an exception.

But that's just me.

// Niklas



More information about the Python-list mailing list