Path: csiph.com!usenet.pasdenom.info!aioe.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gregory Ewing Newsgroups: comp.lang.python Subject: Re: Why Python 3? Date: Tue, 22 Apr 2014 09:58:12 +1200 Lines: 17 Message-ID: References: <7x8ur1esa5.fsf@ruckus.brouhaha.com> <535493d4$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 ZVTbagsHMm/mAr6jnRgc3w4cmiAylHgu69S/pt2sS6ch9QdD+I Cancel-Lock: sha1:uc6O8UAGux/fG8E4n5FnsymJb2o= User-Agent: Mozilla Thunderbird 1.0.5 (Macintosh/20050711) X-Accept-Language: en-us, en In-Reply-To: Xref: csiph.com comp.lang.python:70478 Chris Angelico wrote: > Earlier it was said that having both / and // lets you explicitly > choose whether you want a float result or an int by picking an > operator. I'm saying that's not so; the operator and the type aren't > quite orthogonal, but close to. I don't think I said that, or if I did I was using sloppy language. As someone pointed out a couple of posts ago, it's not really about types, it's about selecting which *operation* you want to perform. Ordinary division and floor division are very different operations, and you want to be sure you get the right one. -- Greg