Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #16883
| 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 | <arnodel@gmail.com> |
| 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 | <CALwzidkfbtYVyBvEYrs8B-CcYyJsMp6R-zLLLnZRAtkbMnz4Yw@mail.gmail.com> |
| References | <jbr607$eer$1@news.jpl.nasa.gov> <CALwzidkfbtYVyBvEYrs8B-CcYyJsMp6R-zLLLnZRAtkbMnz4Yw@mail.gmail.com> |
| Date | Thu, 8 Dec 2011 22:10:01 +0000 |
| Subject | Re: tracking variable value changes |
| From | Arnaud Delobelle <arnodel@gmail.com> |
| To | Ian Kelly <ian.g.kelly@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| Cc | Catherine Moroney <Catherine.M.Moroney@jpl.nasa.gov>, 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 <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3457.1323382205.27778.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
On 8 December 2011 21:50, Ian Kelly <ian.g.kelly@gmail.com> 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. Then, to change the value, change the > contents of the container object. What you use as a container object > is up to you. Some 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. -- Arnaud
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
tracking variable value changes Catherine Moroney <Catherine.M.Moroney@jpl.nasa.gov> - 2011-12-08 12:17 -0800
Re: tracking variable value changes Ian Kelly <ian.g.kelly@gmail.com> - 2011-12-08 14:50 -0700
Re: tracking variable value changes Ben Finney <ben+python@benfinney.id.au> - 2011-12-09 09:06 +1100
Re: tracking variable value changes Arnaud Delobelle <arnodel@gmail.com> - 2011-12-08 22:10 +0000
Re: tracking variable value changes Andrea Crotti <andrea.crotti.0@gmail.com> - 2011-12-09 12:43 +0000
Re: tracking variable value changes alex23 <wuwei23@gmail.com> - 2011-12-11 21:45 -0800
Re: tracking variable value changes Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-12-10 00:41 +0000
csiph-web