Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!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.114 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.79; '*S*': 0.01; 'cc:addr:python-list': 0.11; 'competent': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'in-place': 0.16; 'thursday,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'version.': 0.19; 'meant': 0.20; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'possibly': 0.26; 'world,': 0.26; 'header:In-Reply-To:1': 0.27; 'ideal': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'except': 0.35; 'johnson': 0.35; 'received:google.com': 0.35; 'should': 0.36; 'two': 0.37; 'pm,': 0.38; '12,': 0.39; 'ian': 0.60; 'most': 0.60; 'course': 0.61; 'more': 0.64; 'mar': 0.68; 'designers': 0.74; 'same,': 0.91; 'thing,': 0.91; 'to:none': 0.92; 'rick': 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=lmh/qij/SaNDo9OEi8OvRdho0XoNv9Bfn69DBRyXYpQ=; b=Fnj62T+dowi4Eb9wRu3BlSKpF765tq9LLl0h8W89X07pZwraA9mnb8m+aNt70AfmEp KvNq2IHiIeL31yNWwOQb3Y8YQNx4tJgRGIb6ZHqvwxFcSWh/gpWG39peQv/mbsG3/UVv yteBSNcGnnjuQFp8GwkTF70/07qu0mq5EOPYZSBKXZoGCk5M0cB3F3fy6QBLjQzBqWxL gJ0Dk5Aav3Y4chmDd/2E/XigNejfxYD3e3V7X+fm21PKrWI3DsOvdFtMb4D6Tf7OpVNH DPXHNGn5qBnaEb+76/r/Mo4HrdTOsRy4se5irXWxcwsXzAFjfSMiw5bxCUD6yAztEmB7 SG2g== MIME-Version: 1.0 X-Received: by 10.68.197.36 with SMTP id ir4mr1678074pbc.46.1394590223549; Tue, 11 Mar 2014 19:10:23 -0700 (PDT) In-Reply-To: <0d76f320-a39e-44e9-85a2-74220b646566@googlegroups.com> References: <0d76f320-a39e-44e9-85a2-74220b646566@googlegroups.com> Date: Wed, 12 Mar 2014 13:10:23 +1100 Subject: Re: Tuples and immutability 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: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1394590232 news.xs4all.nl 2946 [2001:888:2000:d::a6]:57634 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:68256 On Wed, Mar 12, 2014 at 1:01 PM, Rick Johnson wrote: > On Thursday, February 27, 2014 4:18:01 PM UTC-6, Ian wrote: >> x += y is meant to be equivalent, except possibly in-place and more >> efficient, than x = x + y. > > In an ideal world, the speed of these two codes should be the same, of course i'm "assuming" that most competent language designers would optimise the slower version. > Except that they don't mean the same thing, so it's not an optimization target. ChrisA