Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed20.multikabel.net!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; 'distinct': 0.05; 'python': 0.08; 'programmers.': 0.09; 'am,': 0.12; 'cc:addr:python-list': 0.15; '7:30': 0.16; 'subject:copy': 0.16; 'wrote:': 0.16; 'jan': 0.19; 'seems': 0.19; 'cc:no real name:2**0': 0.21; 'header:In- Reply-To:1': 0.22; 'cc:2**0': 0.25; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'fri,': 0.30; 'received:209.85.210.46': 0.30; 'received:mail- pz0-f46.google.com': 0.30; 'chris': 0.30; 'everyone,': 0.32; 'it.': 0.33; 'but': 0.37; "there's": 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'received:209': 0.39; 'subject:: ': 0.39; 'difference': 0.40; '(always': 0.84; 'sorely': 0.84; 'subject:write': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=PL8YPNsHHhn19J1+rFHheuthfMCW7e5NYtNuoYsa+J0=; b=sknn2MkOgH4rDb6udiI7yx07rhq4FxZ83DYtHkxckdlYQ78H2J3WanLQbMkrkybzmy uzGmx6wjXXL/nXRrTDMsLwAnjwW9ayTuUtG5kGCPB9+vaJbWKfKfqmkz/NDoJJPNJDzf 034vIOjOu0rG1LsIcwpHvf7nPlDyYhknLXmOo= MIME-Version: 1.0 In-Reply-To: References: <4f101f45$0$29999$c3e8da3$5496439d@news.astraweb.com> From: Devin Jeanpierre Date: Fri, 13 Jan 2012 08:50:23 -0500 Subject: Re: copy on write To: Chris Angelico Content-Type: text/plain; charset=UTF-8 Cc: python-list@python.org 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: 9 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326462667 news.xs4all.nl 6951 [2001:888:2000:d::a6]:56582 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18917 On Fri, Jan 13, 2012 at 7:30 AM, Chris Angelico wrote: > It seems there's a distinct difference between a+=b (in-place > addition/concatenation) and a=a+b (always rebinding), which is sorely > confusing to C programmers. But then, there's a lot about Python > that's sorely confusing to C programmers. I think this is confusing to just about everyone, when they first encounter it. -- Devin