Sympy terms can be serialized/deserialized somewhat robustly with str and
sympify.
On Jun 20, 2014 11:53 AM, Aaron Meurer asmeu...@gmail.com wrote:
You should probably just store the name of the symbol in the dictionary as
a string. You may also want to do that for the floats if precision
Hi
I have a dict containing symbols as keys, mapped to float values. I need to
convert it to JSON format(for passing to Javascript).
Here is an example dict:
constants = {l: 10.0, m: 10.0, g: 9.81}
python's json module cannot parse these symbols.What should be the best
approach to implement
You should probably just store the name of the symbol in the dictionary as
a string. You may also want to do that for the floats if precision issues
come up.
Aaron Meurer
On Fri, Jun 20, 2014 at 1:20 PM, TARUN GABA tarun.ga...@gmail.com wrote:
Hi
I have a dict containing symbols as keys,