I had the same question previously, but unfortunately, it passed below 
the radars, so I am glad Mauricio's post got picked up. The problem is 
that the dict() command automatically converts the variable names to 
strings, so the new symbolics can't be used in combination with dict(). 
Hope it can be fixed soon, as this breaks quite a few of my notebooks.

Cheers,
Stan

Maurizio wrote:
> Good point!
>
> Honestly, I didn't catch I could use a symbolic variable as the left
> hand side of the definition of an element in a dictionary, I thought
> that should have always been a string
>
> I don't know whether this has to be added in trac, and if so, where (I
> imagine this should be related to new symbolic, or coercion or stuff
> like that)
>
> Thanks a lot
>
> Regards
>
> Maurizio
>
>   
>> Not sure, if it's not already onhttp://trac.sagemath.org/sage_trac/ 
>> it should be. Probably due to the new symbolics. What you can do is  
>> make your dictionary cicco = {x: 10}. Making strings work shouldn't  
>> be too hard, that's what the a.subs(x=10) needs to handle.
>>
>> - Robert
>>     
> >
>   

-- 
________________________________________

Stan Schymanski
Scientist
Max Planck Institute for Biogeochemistry
Postfach 10 01 64
D-07701 Jena

Phone: +49.3641.576264
Fax: +49.3641.577274
WWW: http://www.bgc-jena.mpg.de/~sschym

Biospheric Theory and Modelling Group
http://www.bgc-jena.mpg.de/bgc-theory/
_________________________________________


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to