Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'operator': 0.03; 'explicitly': 0.05; 'model,': 0.05; 'say,': 0.05; 'subject:Python': 0.06; '21,': 0.07; 'float': 0.07; 'subject:Why': 0.09; 'cc:addr:python-list': 0.11; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'operator.': 0.16; 'so;': 0.16; 'using,': 0.16; 'wrote:': 0.18; 'saying': 0.22; 'cc:addr:python.org': 0.22; "aren't": 0.24; 'lets': 0.24; 'earlier': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; "d'aprano": 0.31; 'division': 0.31; 'steven': 0.31; 'quite': 0.32; 'but': 0.35; 'received:google.com': 0.35; 'choosing': 0.36; 'picking': 0.36; 'subject:?': 0.36; 'pm,': 0.38; 'how': 0.40; "you're": 0.61; 'choose': 0.64; 'here': 0.66; 'between': 0.67; 'close': 0.67; 'distinguish': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=KzN6WxD+vQ9eZ7pFVFPoBxRQWptd1XDp+wJZPkApJoQ=; b=aCrw9OE23u+HCODKXyLkijGKSemw93rII5oV1POCyyIKM5km0aEgiB9IlRigPB9iH2 6dxiCgpdZIVGNvFrSy+NwTWREkllMf8IrKLY48uz6r0Z1tIRmhUmmVxW1uzX0OG7P0GW Vjs0mTjtdOaMk9w/0XvwV0Kjs0Z3RsJOurTBSJrIGhVEo90Pg3t/FDqXC2yvSS8aTAOD z1EnI1MT2aWPvDXL/FGjJCsYPg2OOhEfhuKGjGScvSsH3Z9SRk397JMQ3z3Q6c921C59 mIxdZZGeuZHc3N71ZfTK8ffYeK64j1sI4NgdoirgUFN+vZegm/ZOgz+S3Ovi4rtTUd1p F+3A== MIME-Version: 1.0 X-Received: by 10.58.96.36 with SMTP id dp4mr1242525veb.21.1398055440086; Sun, 20 Apr 2014 21:44:00 -0700 (PDT) In-Reply-To: <535493d4$0$29993$c3e8da3$5496439d@news.astraweb.com> References: <7x8ur1esa5.fsf@ruckus.brouhaha.com> <535493d4$0$29993$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 21 Apr 2014 14:43:59 +1000 Subject: Re: Why Python 3? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1398055442 news.xs4all.nl 2882 [2001:888:2000:d::a6]:33782 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70452 On Mon, Apr 21, 2014 at 1:43 PM, Steven D'Aprano wrote: >> Explicitly choosing float division: >> >> x / float(y) > > But here you're not choosing an *operator*, you're choosing a *type*. > With this model, how do I distinguish between floor division and true > division using, say, Fractions? 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. ChrisA