sympy/sympy — pull request #1228 by smichr (2012-04-11 17:03:17+00:00)
Title: 3219: infinite recursion for as_leading_term is fixed

There is also better detection of a bare Symbol base in Pow._eval_nseries