[SciPy-dev] [SciPy-user] calculating factorial

Pearu Peterson pearu at scipy.org
Sat Nov 19 10:26:37 CST 2005


With the revision 1516 of scipy core arange seems to have ref.counting 
problem:

>>> from scipy import *
>>> prod(arange(2,101,dtype=object))
Illegal instruction

>>> from scipy import *
>>> a=prod(arange(2,101,dtype=object))
>>> a
Illegal instruction

>>> from scipy import *
>>> a=arange(2,101,dtype=object)
>>> b=prod(a)
>>> b
9.3326215443944102e+157
>>>

Anyone can reproduce these segfaults?

Pearu




More information about the Scipy-dev mailing list