Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'explicitly': 0.05; 'subject:Python': 0.06; 'explicit': 0.07; 'float': 0.07; 'subject:Why': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'division,': 0.16; 'division.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'similarly,': 0.16; 'truncating': 0.16; 'wrote:': 0.18; 'do.': 0.18; 'cc:addr:python.org': 0.22; 'integer': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'requesting': 0.31; "i'd": 0.34; 'problem.': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'subject:?': 0.36; 'being': 0.38; 'whatever': 0.38; 'rather': 0.38; 'does': 0.39; 'tell': 0.60; "you're": 0.61; '20,': 0.68; 'different.': 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=v+2pbEsGUmCKsJuA7rc8AP0QQyGWJipBirGfWh3eWnk=; b=s1rLcu8vgWAKh+tV2hNIhG8HYtX/QjVXuB0sK8M+Gn50YhNnOJs0w/cRo3tWiuDcfg hfhxxaE77w+Ww7vz+/JWN3iZlgkBnzYQNiLYtiCJpbP0XvPpWP3b8KD5UkyYpGoxy2Kf qPbiUsP0yGyOLypOSVgHnrbGNBDKArQQTT1n5CgVK1dB25IwaQSktLv1Bo+BjKl/UpyO oApaO0k4gnFFm6q7Jd3lAmDuxjvmplYQvg9cQQ0bYNH11d+xvjliKaFcDsMXYce4ingP YT9qdl31rNh8Vo9X1949FKJLxzBqFpeXQBBixt+QLmWdx3cUH0JwtisxfK3Kbdnxj3YU +65g== MIME-Version: 1.0 X-Received: by 10.52.241.106 with SMTP id wh10mr19057485vdc.16.1397957308357; Sat, 19 Apr 2014 18:28:28 -0700 (PDT) In-Reply-To: References: <7x8ur1esa5.fsf@ruckus.brouhaha.com> Date: Sun, 20 Apr 2014 11:28:28 +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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1397957316 news.xs4all.nl 2866 [2001:888:2000:d::a6]:43416 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:70401 On Sun, Apr 20, 2014 at 11:06 AM, Gregory Ewing wrote: > Chris Angelico wrote: >> >> I'd rather have to explicitly request floating-point division; > > > When you write / in Python 3, you *are* explicitly requesting > floating-point division. > > Similarly, when you write // you're explicitly requesting > integer division. > > I don't see the problem. You write whatever you mean and it > does what you tell it to do. Truncating vs true is not the same as int vs float. If you mean to explicitly request float division, you call float() on one or both arguments. You're being explicit about something different. ChrisA