SciPy

numpy.ndarray.__long__

ndarray.__long__() <==> long(x)