Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Integer and float division [was Re: Why Python 3?] Date: Mon, 21 Apr 2014 11:44:07 +1200 Lines: 23 Message-ID: References: <7x8ur1esa5.fsf@ruckus.brouhaha.com> <5353a958$0$29993$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net waDzDYs6YvFqI3/Ld50VVgMcwgapHdNx3lEqy3i5Wdqe/fKMHW Cancel-Lock: sha1:MVzdr30P4ZXZtS7c1LzkvpeiXco= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: <5353a958$0$29993$c3e8da3$5496439d@news.astraweb.com> Xref: csiph.com comp.lang.python:70441 > On Sat, 19 Apr 2014 19:37:31 +1000, Chris Angelico wrote: > >>In Python 3, you have to say "Oh but I want my integer division to >>result in an integer": I don't see why that's such a big hardship. There are clear advantages to having an explicit way to request non-floor division. Whatever way is chosen for that, some other way has to be chosen to request floor division. One could debate whether it would have been better to make / mean floor division and invent something else for non-floor division, but then some people would complain "Oh, but I have to say I want my float division to return a float!" Either way requires people to make some changes in their habits. -- Greg