Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!cs.uu.nl!news.stack.nl!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.041 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'value,': 0.04; 'float': 0.13; 'subject:changes': 0.16; 'subject:variable': 0.16; 'ugly.': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; 'cc:no real name:2**0': 0.20; 'trying': 0.21; 'header:In-Reply-To:1': 0.22; 'putting': 0.28; 'effect': 0.28; 'message-id:@mail.gmail.com': 0.28; 'anyway.': 0.29; 'problem': 0.29; 'cc:addr:python.org': 0.29; 'kelly': 0.30; 'object.': 0.30; 'objects': 0.32; 'rather': 0.33; 'there': 0.33; 'object': 0.33; 'received:209.85.161': 0.36; 'cc:2**1': 0.36; 'variables': 0.37; 'list,': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'received:209': 0.40; '2011': 0.61; 'kind': 0.61; 'you.': 0.63; 'directly.': 0.68; 'subject:value': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=jprhc4PwQkTDfrpWxpyQw623+YI5AJ9XEEZyswvM3Gg=; b=f46s9TYe18RsiDXIb+XftisRl4N4cl6uIJIxcSLxncEywhhZlJzqL2Srdnfa6nJv7X o+dAGVVvOMlLat63CnBNYOzo2ZMZnNI4eLDAIBLRsn6BNMS13AeZYYMDRdWGaJpOgoWq PUAD6/9tHmtkxfdSqHXRjYXWqy2r1+wCVBhBM= MIME-Version: 1.0 In-Reply-To: References: Date: Thu, 8 Dec 2011 22:10:01 +0000 Subject: Re: tracking variable value changes From: Arnaud Delobelle To: Ian Kelly Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: Catherine Moroney , 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: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1323382205 news.xs4all.nl 6928 [2001:888:2000:d::a6]:47064 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:16883 On 8 December 2011 21:50, Ian Kelly wrote: > You can get the same effect with a float by putting it in a container > object and binding both variables to the same container objects rather > than to the float directly. =C2=A0Then, to change the value, change the > contents of the container object. =C2=A0What you use as a container objec= t > is up to you. =C2=A0Some use a 1-element list, although I find that ugly. This kind of trick is not often necessary anyway. It may be a sign that there is a better approach to the problem that the OP is trying to solve. --=20 Arnaud