tracking variable value changes
Jerry Hill
malaclypse2 at gmail.com
Thu Dec 8 16:12:14 EST 2011
On Thu, Dec 8, 2011 at 3:17 PM, Catherine Moroney <
Catherine.M.Moroney at jpl.nasa.gov> wrote:
> Is there some way to rewrite the code above so the change of "a" from
> 1.0 to 100.0 is reflected in the dictionary. I would like to use
> simple datatypes such as floats, rather than numpy arrays or classes.
>
No, there is not. You would need to use a mutable data type, and float is
not mutable (neither are ints or strings).
--
Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111208/602d0550/attachment-0001.html>
More information about the Python-list
mailing list