tracking variable value changes
Arnaud Delobelle
arnodel at gmail.com
Thu Dec 8 17:10:01 EST 2011
On 8 December 2011 21:50, Ian Kelly <ian.g.kelly at 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
More information about the Python-list
mailing list