sympy/sympy — pull request #1281 by inducer (2012-05-07 18:03:46+00:00)
Title: Stop pretty-printing from messing up symbol names

These commits help sympy pass the following test:

{{{
import sympy as sp
symb_name = "dexpr2_d1tau"
s = sp.Symbol(symb_name)
assert sp.pretty(s) == symb_name
}}}

Previously, it would output `dexpr_d1tau_2`--i.e. not just not do anything useful, but also randomly mangle the symbol name.

Andreas