--
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 view this discussion on the web visit https://groups.google.com/d/msgid/sympy/d1eb5de6-6333-447d-9583-50fe7a0ac0ddn%40googlegroups.com.
Why not simply take the math string and use Python to replace "**" by "^" everywhere? That way you don't have to worry about the fact that "^" is a Python operator. You could also use the reverse replacement to 'reactivate' the string if necessary.
David