On Thu, Dec 8, 2011 at 3:17 PM, Catherine Moroney <
catherine.m.moro...@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
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to