answered 2 years ago
There might be room for improvement there.
Here are two possibilities to work around this limitation.
sage: f2 = S(eval('y + a')) sage: f2 = eval('S(y + a)')