sympy/sympy — pull request #2153 by asmeurer (2013-06-04 15:23:08+00:00)
Title: Implement __long__

It is the same as __int__, because Python automatically coerces the output to
long(). That is also why we do not even test that the output is an instance
of long.

This fixes issue 3858.