Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!newsfeed.xs4all.nl!newsfeed6.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.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'initialize': 0.07; 'terry': 0.07; 'expressions.': 0.09; 'syntax': 0.11; '25,': 0.12; 'am,': 0.13; 'received:209.85.214.174': 0.13; 'received:mail- iw0-f174.google.com': 0.13; 'wrote:': 0.15; 'expression"': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'reedy': 0.16; 'unambiguous': 0.16; 'values:': 0.16; 'zero...': 0.16; 'header:In-Reply-To:1': 0.22; 'sort': 0.28; 'received:209.85.214': 0.28; 'message-id:@mail.gmail.com': 0.28; 'sat,': 0.28; 'variables': 0.29; 'subject:?': 0.31; 'cases': 0.32; 'there': 0.34; 'to:addr:python-list': 0.34; 'couple': 0.34; 'things': 0.35; 'assignment': 0.35; 'received:google.com': 0.37; 'but': 0.37; 'received:209.85': 0.38; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'received:209': 0.39; "i'd": 0.40; 'more': 0.60; 'miss': 0.64; '90%': 0.64; 'covers': 0.64; 'ever': 0.65; 'jun': 0.67; 'concept,': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=rfyWuUUEKLvkMp09KALEJDljvpe3fdB+ff4O4CdI9ZU=; b=QLmkT49DFvfJ6cQklUs7HFn846WZemDpx8Tk1dk/CNWfpk+AyO15Vs1bK+tzewii6W OfR20ja1tcWHUQZR3fi0FYAwiuIFyEwzlSsygwhF5VNef4iVNlH3CyL4Y4aZhRS+LeXM hV9Lm4ClwsLTdq28ipzfMMTSbIDh7/tDxENhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=PIAKkaiaxjXCmkki1a0WPXDw06vkK3xDtgwNE2TBHbMrheZlswfJxi/etuM+ZoIBFk hSBY2y7ZlLVTx0G+WKCFY8YeSHRBXLbKnqXamgsr6UZLUaYHBIcpbdmY9+PhaIDTi6hL ZSpJR3Mya4Xit4veeiQpnge/5P8Ed6BIsl0r0= MIME-Version: 1.0 In-Reply-To: References: <4E043953.5080705@stoneleaf.us> <20110624195300.GJ6075@point.cs.wisc.edu> <4E04EFD4.6050309@stoneleaf.us> <20110624200618.GK6075@point.cs.wisc.edu> Date: Sat, 25 Jun 2011 10:32:57 +1000 Subject: Re: Interpreting Left to right? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 16 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1308961982 news.xs4all.nl 194 [::ffff:82.94.164.166]:54578 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:8423 On Sat, Jun 25, 2011 at 7:02 AM, Terry Reedy wrote: > If I have ever used this sort of multiple assignment, it has been for simple > unambiguous things like "a = b = 0". For which it's extremely useful. Initialize a whole bunch of variables to zero... or to a couple of values: minfoo=minbar=minquux=1000 maxfoo=maxbar=maxquux=0 There are times when I miss the "assignment is an expression" concept, but I'd say this syntax covers 90% or more of use cases for assignment expressions. ChrisA