Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!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; 'terry': 0.09; 'testing,': 0.09; 'jan': 0.10; 'context.': 0.16; 'guessing': 0.16; 'received:80.91': 0.16; 'received:80.91.229': 0.16; 'received:gmane.org': 0.16; 'received:list': 0.16; 'received:verizon.net': 0.16; 'reedy': 0.16; 'meant': 0.16; 'language': 0.17; 'wrote:': 0.21; 'header:In-Reply-To:1': 0.22; 'header:User-Agent:1': 0.23; 'right.': 0.23; 'assignment': 0.29; 'basic': 0.33; 'header:X-Complaints-To:1': 0.36; 'some': 0.37; 'received:org': 0.38; 'to:addr:python-list': 0.39; 'to:addr:python.org': 0.40; 'single': 0.61; 'such': 0.61 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Documentation, assignment in expression. Date: Mon, 26 Mar 2012 12:00:50 -0400 References: <4f6d0060$0$6634$9b4e6d93@newsspool2.arcor-online.net> <4f6f0d24$0$6561$9b4e6d93@newsspool4.arcor-online.net> <4f70005c$0$29968$c3e8da3$5496439d@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-74-109-121-73.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 In-Reply-To: <4f70005c$0$29968$c3e8da3$5496439d@news.astraweb.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1332777665 news.xs4all.nl 6855 [2001:888:2000:d::a6]:52212 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:22199 On 3/26/2012 1:36 AM, Steven D'Aprano wrote: > > (I seem to recall a language that used a single = for both assignment and > equality testing, guessing which one you meant from context. BASIC > perhaps? Right. In some Basics, such as MS GW-Basic (I still have their book), a = b = c meant a = (b = c), or in Python, a = b==c. -- Terry Jan Reedy