Path: csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed3a.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.05; 'base.': 0.05; 'float': 0.05; 'assignment': 0.07; 'creighton': 0.09; 'part,': 0.09; 'cc:addr:python-list': 0.10; 'argument': 0.15; 'things.': 0.15; 'weird': 0.15; '>>on': 0.16; 'eternal': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'grasp': 0.16; 'help?': 0.16; "isn't.": 0.16; 'literals': 0.16; 'separator,': 0.16; 'sorts': 0.16; 'wrote:': 0.16; 'laura': 0.18; 'numerical': 0.18; 'language': 0.19; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'fairly': 0.22; 'amounts': 0.22; 'problem:': 0.22; 'help.': 0.23; '2015': 0.23; 'header:In-Reply- To:1': 0.24; 'written': 0.24; 'mon,': 0.24; 'question': 0.26; 'chris': 0.26; 'figure': 0.27; 'least': 0.27; 'message- id:@mail.gmail.com': 0.28; 'this.': 0.28; "i'm": 0.29; 'looks': 0.29; 'decimal': 0.29; 'symbols': 0.29; 'too.': 0.30; 'maybe': 0.31; 'language.': 0.32; 'though,': 0.32; 'point': 0.33; 'problem': 0.33; 'change,': 0.33; 'subject:?': 0.34; 'add': 0.34; 'received:google.com': 0.34; 'behind': 0.35; 'skip:> 10': 0.35; 'something': 0.35; 'really': 0.35; "isn't": 0.35; 'but': 0.36; 'being': 0.36; 'too': 0.36; '(and': 0.36; 'subject:" ': 0.36; 'should': 0.37; 'agree': 0.37; 'subject:: ': 0.37; "won't": 0.38; 'difference': 0.38; 'is,': 0.38; 'speak': 0.38; 'pm,': 0.39; 'sure': 0.40; 'some': 0.40; 'even': 0.61; 'necessarily': 0.61; 'real': 0.61; 'grab': 0.61; 'here.': 0.61; 'skip:u 10': 0.62; 'different': 0.64; 'world': 0.64; 'therefore': 0.65; 'brain': 0.66; 'debate': 0.66; 'potentially': 0.67; 'teaching': 0.69; 'computers': 0.70; 'obvious': 0.72; 'special': 0.72; 'money': 0.72; '+1000,': 0.84; 'chrisa': 0.84; 'distinguish': 0.84; 'to:none': 0.90; 'different.': 0.91; 'novice': 0.93 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=fFNtPp/rgTgAxFjCPbcs8g5iXqpA0KnGI7oIgDv7hog=; b=xHMTqdqa2wHE4h72JgcXE9gVFbDb9lJlIEujY4juauH+9Jwb2fEzrFGKsolkI4/meO b4ojSe6F4V5zbAOnzhumhr4ZUmyQZFEhtaDS0J30DKQ3B28DmsqYvCZ7Jh/HNGWWAiBX xyZ0hbppPhTY3ozRKLyP4SqtSLlw4OAugoqVoppf070SXROkPJPZlG97hCGKduR3hCtO eB/blxihNkIgEldT4gnuqCvpI1lZqHA2nZz5tWWw3DN7tusaE2qSzJwcMGEI6sOijbF2 3lDHSzPgn2vFl5h6s9KcnNdzbSepxJoXvEZqp2kMPwQUH/+nLdw0931lWqUNsoSGQ6uU 8J4Q== MIME-Version: 1.0 X-Received: by 10.42.154.65 with SMTP id p1mr15272950icw.26.1433166765937; Mon, 01 Jun 2015 06:52:45 -0700 (PDT) In-Reply-To: <201506011124.t51BOqO2021385@fido.openend.se> References: <28cec7df-0f51-4098-b027-72e913a9b656@googlegroups.com> <1433128706.32838.283108057.2C4C8613@webmail.messagingengine.com> <201506010758.t517wR9T015894@fido.openend.se> <201506011028.t51ASBVG019928@fido.openend.se> <201506011124.t51BOqO2021385@fido.openend.se> Date: Mon, 1 Jun 2015 23:52:45 +1000 Subject: Re: What is considered an "advanced" topic in Python? 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.20+ 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1433166769 news.xs4all.nl 2939 [2001:888:2000:d::a6]:33765 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:91674 On Mon, Jun 1, 2015 at 9:24 PM, Laura Creighton wrote: > In a message of Mon, 01 Jun 2015 20:36:14 +1000, Chris Angelico writes: >>The problem isn't the decimal separator, though, because floats can >>have problems even without it (and can have no problems with a decimal >>separator). If you want to distinguish "computer numbers" from "real >>numbers", you'd do better to pick a different set of symbols for them >>- or at least a different numerical base. If all literals were written >>in octal, people would understand that there's something special going >>on here. But would that really help? > > Maybe _your_ brain needs some resetting, too. :) You know too much so > have lost the grasp of how the world looks to the new programmer. > > Problem: > I want to use a computer to add up a whole lot of money amounts so I can > figure out how much money to send some place. > > And they immediately grab floating point numbers... That part I do understand; floating-point is the one obvious way to do these sorts of things. I'm fairly sure we agree that a novice *will*, for better or for worse, stumble upon floats - in pretty much any language. The question is, what part of float is wrong? I don't think the problem is with the decimal separator, and therefore laying them out as "whole part, colon, fractional part" won't necessarily help. And it can potentially hurt, by teaching people that computers are just weird, and you have to speak a weird language to talk to them - without understanding that there's a real difference behind this. It's like the eternal debate about assignment and whether "x = x + 1" is nonsense, with advocates preferring "x := x + 1" as being somehow fundamentally different. It isn't. It's just a notational change, and not even a huge one. (Though I do see the line of argument that it should be "x <- x + 1" or something else that looks like an arrow.) ChrisA