Hashing in python

MRAB python at mrabarnett.plus.com
Sun Feb 14 18:29:41 CET 2010


Martin v. Loewis wrote:
>> floor(x) returns an integer
> 
> Why do you say that? Assuming you are talking about math.floor, it works
> differently for me:
> 
> py> math.floor(10.0/3)
> 3.0
> 
I've just double-checked. It returns a float in Python 2.x and an int in
Python 3.x. (I recently switched to Python 3.1.)



More information about the Python-list mailing list