Re: [sage-devel] Re: int floor division

2011-01-19 Thread Tom Boothby
On Wed, Jan 19, 2011 at 2:37 PM, Eviatar wrote: > An alternative would be to make standard Python functions (such as > count) return Integer objects, but this would make it incompatible > with vanilla Python. -1, think of the effort involved, and the performance hit we'd take -- To post to this

Re: [sage-devel] Re: int floor division

2011-01-19 Thread Tom Boothby
On Tue, Jan 18, 2011 at 11:33 PM, Nils Bruin wrote: > Python 3's division for integers is quite unsuitable for a computer > algebra system. Python 2's division for integers is also quite unsuitable for a computer algebra system: >>> 1/2 0 But Sage fixes this: sage: 1/2 1/2 Since floor divisio

Re: [sage-devel] Re: int floor division

2011-01-18 Thread Robert Bradshaw
On Tue, Jan 18, 2011 at 1:20 AM, Simon King wrote: > Hi pang! > > On 18 Jan., 09:52, pang wrote: >> That would be a greater confusion: we'd have the Sage layer, and >> underlying that you wouldn't have neither python 2 nor python 3, but a >> mixture. > > Or you could argue the other way around: C