S/sympify only work with valid Python code. A Symbol name can contain
any string, but it will only be parsable in a larger expression if it
is a valid Python name.
You can try using parse_expr from sympy.parsing.sympy_parser. It is
designed to parse some things that aren't valid Python. However, as
far as I know, it hasn't been designed to work with non-Python
variable names, so it would probably need some extension to work with
this.
The other way that always works is to wrap the name with Symbol, like
sympify("Symbol('a_{2, 2}')"). You also need do some extra things to
parse the =.
Aaron Meurer
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
sympy+un...@googlegroups.com.
> To post to this group, send email to
sy...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/sympy.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/sympy/1eebe626-ad4d-47bb-ab1d-5597b2745f0d%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.