Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed3.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.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'context': 0.07; 'element': 0.07; "'a'": 0.09; 'sentence': 0.09; 'subject:number': 0.09; 'cc:addr:python-list': 0.11; '+1.': 0.16; 'equation': 0.16; 'expressed,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'symbols': 0.16; 'thanks,': 0.17; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'math': 0.24; 'mon,': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'subject:list': 0.30; 'message-id:@mail.gmail.com': 0.30; 'went': 0.31; '-0700,': 0.31; 'context.': 0.31; "d'aprano": 0.31; 'equality': 0.31; 'ok.': 0.31; 'steven': 0.31; 'another': 0.32; 'subject:the': 0.34; 'received:google.com': 0.35; 'park': 0.36; "i'll": 0.36; 'pm,': 0.38; 'does': 0.39; 'how': 0.40; 'stand': 0.64; 'subject:get': 0.81; 'equation,': 0.84; 'standing': 0.84; 'hate': 0.91; 'to:none': 0.92; 'have.': 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=Dt/n/Iw08xTq7ajbnBxl7sg9yyeSjtD2QoqX4NnrKdY=; b=KEDDPhsHa/iW7EZPQeeXLKhKgGn7UZWrdhVMTHKOdM3fGLTf3ZLSojixaRxhDHTq4o mTi84r38ZganTtD1o7BJGG2urgZeHcKteLsNq91aYOPhXncBE/ct5bRNG7cEzpyjj4qi 4VsYUGMhtiFBrSUOBsL3uGrq6UCC1Ad9UH3k3sh4PB9LfZS72vPH1+cG2spO1uY340S5 8+ActYndWZbZjPwmVrm9ncL/+Sp74HhwZK9q2RMumCQuAyAe5BdB9mVpyG5SwCwsyRQZ hGBG/0IIF0mN8jZ/ky/wSHtdNB6XZqVGm6R5+iAufEiqGnJdiXASbYwXzmzsTG4tJgSL F2bw== MIME-Version: 1.0 X-Received: by 10.50.97.101 with SMTP id dz5mr13164373igb.14.1407748548270; Mon, 11 Aug 2014 02:15:48 -0700 (PDT) In-Reply-To: <53e8850b$0$29890$c3e8da3$5496439d@news.astraweb.com> References: <53E658CD.5020904@gmail.com> <53e59035$0$29998$c3e8da3$5496439d@news.astraweb.com> <338e8fb0-c9ec-462a-b560-1c1ff77de17e@googlegroups.com> <154cc342-7f85-4d16-b636-a1a953913c98@googlegroups.com> <8c41d779-0c26-430a-a915-08c2b962e0e7@googlegroups.com> <53e8850b$0$29890$c3e8da3$5496439d@news.astraweb.com> Date: Mon, 11 Aug 2014 19:15:48 +1000 Subject: Re: how to get the ordinal number in list 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.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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407748550 news.xs4all.nl 2916 [2001:888:2000:d::a6]:42390 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76035 On Mon, Aug 11, 2014 at 6:55 PM, Steven D'Aprano wrote: > On Sun, 10 Aug 2014 23:22:45 -0700, Rustom Mody wrote: > >> You think that the '=' sign not standing for math equality is ok. >> >> How come? > > For the same reason that in the following: > > [c.upper() for c in some_string if 'a' < c < 'x'] > > having the c symbol not stand for the speed of light is okay. Likewise, > in the sentence "I went to the park today", the symbol I doesn't mean the > element iodine. Symbols are context-dependent: the x in one equation is > not necessarily the same x in another equation, and the symbol = in one > context does not necessarily have the same meaning as in another context. Thanks, you said it better than I would have. That's exactly the sentiment I would have expressed, and while I hate to "Me too" a post, I'll do it here. +1. ChrisA