Maybe I'm misunderstanding what you're doing, but if you just want
exactly one Symbol, why don't you just do var = Symbol(vname,
**assumptions)?
Aaron Meurer
In [1]: Symbol('x, y')
Out[1]: x, y
In [2]: type(Symbol('x, y'))
Out[2]: sympy.core.symbol.Symbol
In [10]: Symbol("Car[2010, 'prius', 2008]")
Out[10]: Car[2010, 'prius', 2008]
In [11]: type(Symbol("Car[2010, 'prius', 2008]"))
Out[11]: sympy.core.symbol.Symbol
By the way, changing the name of a Symbol after it is created is a bad
idea. It will cause it to compare equal to other symbols of the same
name, but the Symbol's hash will not be updated.
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/I-qi5iBc8-8J.
>
> To post to this group, send email to sy...@googlegroups.com.
> To unsubscribe from this group, send email to
> sympy+un...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/eBanxs0F_dEJ.