Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed.kamp.net!newsfeed.kamp.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.017 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'python.': 0.02; 'attribute': 0.07; 'bootstrap': 0.07; 'attributes': 0.09; 'differently.': 0.09; 'literal': 0.09; 'used.': 0.09; 'language,': 0.12; "wouldn't": 0.14; '"."': 0.16; '"["': 0.16; 'literal.': 0.16; 'operation,': 0.16; 'operators,': 0.16; 'slice,': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'seems': 0.21; 'header:User- Agent:1': 0.23; 'specify': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'container': 0.31; 'context.': 0.31; 'object.': 0.31; 'probably': 0.32; 'another': 0.32; 'url:python': 0.33; 'could': 0.34; 'objects': 0.35; 'point.': 0.35; 'but': 0.35; 'really': 0.36; '(we': 0.36; 'object,': 0.36; 'url:org': 0.36; 'two': 0.37; 'being': 0.38; 'whatever': 0.38; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'either': 0.39; 'dave': 0.60; 'url:3': 0.61; 'name': 0.63; 'temporary': 0.65; 'received:74.208': 0.68; 'acts': 0.74; 'operated': 0.74; 'of*': 0.84; 'received:74.208.4.194': 0.84; 'subject:gets': 0.84; 'url:reference': 0.84; 'angel': 0.91; '2013': 0.98 Date: Wed, 19 Jun 2013 04:06:07 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: python-list@python.org Subject: Re: A certainl part of an if() structure never gets executed. References: <51ba6e92$0$29997$c3e8da3$5496439d@news.astraweb.com> <51C144AA.5060008@davea.name> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:BhMOCWbGrkL7bgZiZYyjxmQr0RJZQLGInA/lZTEsVVu 91ObHl05+sID9chJYLDxeU7+2fuIlVBTcbRlW8cXWiYBcSaNZr jls/NSUcW+2FGxWfauJbZN/DWRzi+cA3d+j/9tWLpgxT2af3PF MJ/906LvYkG5gvfcEWRcBfJX7TXEOBLYBz97sb+xqwlslsAehw VDl7h3fW86MlFOZ5XQYNKf2bwuJjCs7p/kqHw32nkGQPGn32OD jD399IpSHPyFxvB2nDP7ainGwuwpfjmqMQKCFc2HWF+RNdNWad S2WuKQeKLoJWYIEHRdrhyb06WiFdQWrEcJvcezkU1hbARIkD+T JUVVEXX59SE2ZO1Vb89I= 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371629183 news.xs4all.nl 15919 [2001:888:2000:d::a6]:47150 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48697 On 06/19/2013 03:14 AM, Chris Angelico wrote: > On Wed, Jun 19, 2013 at 3:42 PM, Dave Angel wrote: >> Names are *one of* the ways we specify which objects are to be used. (We can >> also specify objects via an container and a subscript or slice, or via an >> attribute of another object. And probably another way or two.) > > But you always have to bootstrap it with either a name. Whatever bootstrap really means in this context. But if you have myname[3] + myname[5], the two objects being added are identified by a subscript operation, not just a name. > Or a literal. A literal is used to create an object, and acts like a temporary name for that object, but once again the object being operated on isn't necessarily that one. You can subscript and get attributes from a literal as well. > So those are the only two ways to specify which objects are to be > used. > That would be a pretty weak language, and it wouldn't be python. Now if you considered "." and "[" as operators, then I could understand your point. But http://docs.python.org/3/reference/lexical_analysis.html#operators seems to say differently. Also see http://docs.python.org/3/reference/expressions.html#primaries -- DaveA