Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.albasani.net!nuzba.szn.dk!pnx.dk!amsnews11.chello.com!newsfeed.xs4all.nl!newsfeed5.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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'oct': 0.02; 'python': 0.08; '"copyright",': 0.16; '"credits"': 0.16; '"license"': 0.16; '2.7.2': 0.16; '[gcc': 0.16; 'escribi\xc3\xb3:': 0.16; 'linux2': 0.16; 'subject:copy': 0.16; '>>>': 0.18; 'header:In-Reply-To:1': 0.22; 'wonder': 0.23; 'header:User-Agent:1': 0.33; 'to:addr :python-list': 0.33; 'received:org': 0.37; 'subject:: ': 0.39; 'to:addr:python.org': 0.40; 'type': 0.60; 'more': 0.61; 'eduardo': 0.84; 'subject:write': 0.84 X-Virus-Scanned: Correo Analizado por Casiopea. ITC, Dep. Informatica y Comunicaciones Date: Fri, 13 Jan 2012 11:44:56 +0000 From: Eduardo Suarez-Santana User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20120104 Thunderbird/8.0 MIME-Version: 1.0 To: Subject: Re: copy on write References: <4F101684.2060502@itccanarias.org> In-Reply-To: <4F101684.2060502@itccanarias.org> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326455100 news.xs4all.nl 6990 [2001:888:2000:d::a6]:49592 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18909 El 13/01/12 11:33, Eduardo Suarez-Santana escribió: > I wonder whether this is normal behaviour. > Even simpler: $ python Python 2.7.2 (default, Oct 31 2011, 11:54:55) [GCC 4.5.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> r={'a':1}; >>> d={}; >>> d['x']=r; >>> d['y']=r; >>> d['x']['a']=3 >>> d['y'] {'a': 3} >>>