Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; '(python': 0.05; 'mrab': 0.05; 'apis': 0.07; 'strings.': 0.07; 'cc:addr:python-list': 0.09; 'atom': 0.09; 'integers': 0.09; 'thu,': 0.15; '23,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'identities': 0.16; 'left,': 0.16; 'nearest': 0.16; 'object()': 0.16; 'wrote:': 0.16; 'string': 0.17; 'basically': 0.18; '2015': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'arguments': 0.22; 'mind.': 0.22; 'tkinter': 0.22; 'am,': 0.23; 'performing': 0.23; '(most': 0.24; 'implemented': 0.24; 'header:In-Reply-To:1': 0.24; '(which': 0.26; 'message-id:@mail.gmail.com': 0.27; 'specify': 0.27; 'function': 0.28; 'checked': 0.31; 'operations': 0.31; 'another': 0.32; 'instances': 0.33; 'received:google.com': 0.35; 'done': 0.35; 'exist': 0.35; 'but': 0.36; 'subject:: ': 0.37; 'does': 0.39; 'where': 0.40; 'subject:with': 0.40; 'term': 0.60; 'default': 0.61; 'yes': 0.62; 'here': 0.66; 'jul': 0.72; 'chrisa': 0.84; 'subject:leading': 0.84; 'to:none': 0.91; 'do:': 0.91 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=oxkk+1jDl6k/n9QC31fGGsUdztvsX9bZ5ckY8BTD058=; b=qjJKr2ek3E78T3ghutTbrnH2x9OZTXy1TrtoqWY0UBMH/lVuV5hrE/lN3q+CFwk4eE lgzFjmSXrLCKLTjrT8CbtmVV5WMm44evgu1HmGl1lge6KARBTUygtG6Ef/fJ60OxjwYz 61Ppsg4KOxUJ1ECRU3GTZoQMo4quG/3BVv2Lj2F0NWaAWDdj3iLZadb/NAq+I2oFO7SW utScdoQUn9gsA7Tk2y4DHlGHFg3ytZpsseHg5+/xD574tsBh6IwWGe1VyAV1MqAnNW8G rU2f9di7CZk1Wqb63YoP+2EhzJyL/S+iq5IAo22bAolcnbMvU+bbRyrMqwAoZqgEsbVb uO9A== MIME-Version: 1.0 X-Received: by 10.50.36.72 with SMTP id o8mr9539938igj.16.1437604348212; Wed, 22 Jul 2015 15:32:28 -0700 (PDT) In-Reply-To: <55AFB8EC.7070708@mrabarnett.plus.com> References: <55ab37fb$0$1661$c3e8da3$5496439d@news.astraweb.com> <55aeea13$0$1669$c3e8da3$5496439d@news.astraweb.com> <55aefc70$0$1656$c3e8da3$5496439d@news.astraweb.com> <55AFB673.4040100@rece.vub.ac.be> <55AFB8EC.7070708@mrabarnett.plus.com> Date: Thu, 23 Jul 2015 08:32:28 +1000 Subject: Re: Integers with leading zeroes 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: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1437604355 news.xs4all.nl 2886 [2001:888:2000:d::a6]:42976 X-Complaints-To: abuse@xs4all.nl X-Received-Bytes: 4518 X-Received-Body-CRC: 1787301725 Path: csiph.com!usenet.pasdenom.info!news.stben.net!border1.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Xref: csiph.com comp.lang.python:94405 On Thu, Jul 23, 2015 at 1:38 AM, MRAB wrote: >> Does the same condition hold for strings? If you are not performing string >> operations on something, it is not a string? >> > Tkinter comes to mind. You specify how widgets are laid out strings > that are basically flags: > > text_widget.pack(side=LEFT, fill=BOTH, expand=YES) > > where LEFT, BOTH and YES are strings. The nearest term I can come up with here is that those three are *atoms*. They might be implemented as integers (most C-style APIs work that way), or as strings (which is apparently the case in Tkinter), or as instances of object() that exist solely so their identities can be checked (Python function default arguments are often done that way), but there's only one operation you're allowed to do: Ask if one atom is identical to another atom. ChrisA