Re: [sage-devel] int floor division

2011-01-19 Thread William Stein
On Mon, Jan 17, 2011 at 5:07 PM, Eviatar wrote: > Hello, > > Sage is still using Python 2.* integer floor division. For example, > int(5)/int(10) returns 0. I think this should be changed to the Python > 3 default behaviour, which would return 0.5. Of course, Integer is > preferable in Sage, but m

[sage-devel] int floor division

2011-01-17 Thread Eviatar
Hello, Sage is still using Python 2.* integer floor division. For example, int(5)/int(10) returns 0. I think this should be changed to the Python 3 default behaviour, which would return 0.5. Of course, Integer is preferable in Sage, but many Python functions such as len() and string.count() return