Comment #2 on issue 3642 by [email protected]: rename __name__ string for
singletons
http://code.google.com/p/sympy/issues/detail?id=3642
I am working on structural matching and making a list of the object
classes. Rather than get this
fp(x+1, string=False)
[<class 'sympy.core.add.Add'>, [[<class 'sympy.core.numbers.One'>, []],
[<class
'sympy.core.symbol.Symbol'>, []]]]
I would like to see this
fp(x+1)
['Add', [['One', []], ['Symbol', []]]]
(I know I could create a class and control the printing, but I just wanted
to be able to get the class back from the string; "Add" and "Symbol" return
back to the classes as I showed in the OP, but "One" does not -- but would
if it were "S.One" or if sympify where patched in some way so that
singletons are recognized just like Add and Symbol are.)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.