Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!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; 'python,': 0.02; 'string': 0.09; 'bytes,': 0.09; 'integers': 0.09; 'strings.': 0.09; 'subject:few': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'integers.': 0.16; 'internally': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'notation': 0.16; 'notations': 0.16; 'number?': 0.16; 'octal': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'seperate': 0.16; 'simpson': 0.16; 'skip:> 20': 0.16; 'used:': 0.16; 'wrote:': 0.18; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'print': 0.22; 'header:User-Agent:1': 0.23; 'integer': 0.24; 'loved': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; 'decimal': 0.31; 'prints': 0.31; 'text': 0.33; 'problem.': 0.35; 'etc': 0.35; 'but': 0.35; 'there': 0.35; 'received:com.au': 0.36; 'method': 0.36; 'should': 0.36; 'being': 0.38; 'received:211': 0.38; 'how': 0.40; 'even': 0.60; 'number,': 0.60; 'numbers': 0.61; 'content-disposition:inline': 0.62; 'become': 0.64; 'soon.': 0.71; 'price.': 0.74; 'confusing': 0.84; 'pardon': 0.84; 'to:addr:support': 0.84; 'careful': 0.91; 'numbers:': 0.91 Date: Fri, 14 Jun 2013 20:19:16 +1000 From: Cameron Simpson To: Nick the Gr33k Subject: Re: A few questiosn about encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) References: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=Q6eKePKa c=1 sm=1 a=wom5GMh1gUkA:10 a=Ul6cpnYf0ckA:10 a=IkcTkHD0fZMA:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=ss88cSErNWgA:10 a=O4cfG9SAfUvKbNHZFoEA:9 a=QEXdDO2ut3YA:10 a=DY3JQ7zM5G551gDo:21 a=ADaVQgHsAEbd2An3:21 a=ChdAjXE5lkUvdteQbhpnkQ==:117 Cc: python-list@python.org 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: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371205164 news.xs4all.nl 15935 [2001:888:2000:d::a6]:33500 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48110 On 14Jun2013 11:37, Nikos as SuperHost Support wrote: | On 14/6/2013 11:22 πμ, Antoon Pardon wrote: | | >>Python prints numbers: | >No it doesn't, numbers are abstract concepts that can be represented in | >various notations, these notations are strings. Those notaional strings | >end up being printed. As I said before we are so used in using the | >decimal notation that we often use the notation and the number interchangebly | >without a problem. But when we are working with multiple notations that | >can become confusing and we should be careful to seperate numbers from their | >representaions/notations. | | How do we separate a number then from its represenation-natation? Shrug. When you "print" a number, Python transcribes a string representation of it to your terminal. | What is a notation anywat? is it a way of displayment? but that | would be a represeantion then.... Yep. Same thing. A "notation" is a particulart formal method of representation. | No it doesn't, numbers are abstract concepts that can be represented in | various notations | | >>but when we need a decimal integer | > | >There are no decimal integers. There is only a decimal notation of the number. | >Decimal, octal etc are not characteristics of the numbers themselves. | | So everything we see like: | | 16474 | nikos | abc123 | | everything is a string and nothing is a number? not even number 1? Everything you see like that is textual information. Internally to Python, various types are used: strings, bytes, integers etc. But when you print something, text is output. Cheers, -- Cameron Simpson A long-forgotten loved one will appear soon. Buy the negatives at any price.