How do you get this infinity symbol? But most importantly, do you input this code in a simple python interpreter or in Sage? What is this _sage_() method?
Green diod (Jan 23 '12)Every element from another program (such as sympy) has a _sage_ method to convert its things back to Sage objects. The infinity symbol is just one of the several ways to represent infinity in Sage (and several other programs of this type); in principle, it should be equivalent to using infinity, but apparently this bug leaves it to not work for Sympy.

The workarounds are good for now. I've opened the auspicious ticket # 12345 (http://trac.sagemath.org/sage_trac/ticket/12345) for the underlying issue.
kcrisman (Jan 23 '12)