Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.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.019 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'received:134': 0.05; 'string': 0.09; 'strings.': 0.09; 'subject:few': 0.09; 'python': 0.11; 'confuse': 0.16; 'displayed.': 0.16; 'integers.': 0.16; 'internally': 0.16; 'nick': 0.16; 'notation': 0.16; 'notations': 0.16; 'number?': 0.16; 'octal': 0.16; 'seperate': 0.16; 'seperated.': 0.16; 'wrote:': 0.18; 'bit': 0.19; '>>>': 0.22; 'separate': 0.22; 'header:User-Agent:1': 0.23; 'earlier': 0.24; 'header:In-Reply-To:1': 0.27; 'decimal': 0.31; 'prints': 0.31; 'plain': 0.33; 'moment': 0.34; 'display': 0.35; 'problem.': 0.35; 'something': 0.35; 'etc': 0.35; 'but': 0.35; 'there': 0.35; 'possible': 0.36; 'should': 0.36; 'being': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'number,': 0.60; 'numbers': 0.61; 'such': 0.63; 'become': 0.64; 'linked': 0.65; 'between': 0.67; 'yes': 0.68; 'confusing': 0.84; 'pardon': 0.84; 'careful': 0.91; 'numbers:': 0.91 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEEAL30ulGGuA9G/2dsb2JhbABahwG4WYMCgRyDFwEBBAEjDwFFBgsJAhgCAgUWCwICCQMCAQIBRRMIAogEBo07mz2JQIgHgSaOKRaCNoEUA5Nvg1KGDIs2gxE Date: Fri, 14 Jun 2013 12:50:14 +0200 From: Antoon Pardon User-Agent: Mozilla/5.0 (X11; Linux i686; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: python-list@python.org Subject: Re: A few questiosn about encoding References: <6dfa3707-80f4-407a-a109-66dbb0130513@googlegroups.com> <51b83e5a$0$29998$c3e8da3$5496439d@news.astraweb.com> <51b90ead$0$29997$c3e8da3$5496439d@news.astraweb.com> <51b9708b$0$29872$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: 52 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371207017 news.xs4all.nl 16008 [2001:888:2000:d::a6]:47402 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48114 Op 14-06-13 10:37, Nick the Gr33k schreef: > 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? What do you mean? Internally there is no representation linked to the number, so there is nothing to be seperated. Only when a number needs to be printed, is a representation for that number built and displayed. > What is a notation anywat? is it a way of displayment? but that would > be a represeantion then.... Yes a notation is a representation. However "represenation" is also a bit of python jargon that has a specific meaning. So in order to not confuse with multiple possible meanings for "representation" I chose to use "notation" >> 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? There is a difference between "everything we see" as you write earlier and just plain "eveything" as you write later. Python works with numbers, but at the moment it has to display such a number it has to produce something that is printable. So it will build a string that can be used as a notation for that number, a numeral. And that is what will be displayed. -- Antoon.