[SciPy-user] strange behaviour with arrays of PyObjects

Yaroslav Bulatov yaroslavvb at gmail.com
Fri Sep 2 20:25:23 CDT 2005


from scipy import *
import scipy
from scipy.special import poly1d


If I do

array([poly1d]*2,PyObject)[1]

it works as expected, but if I do

array([poly1d([])]*2,PyObject)[1] 

I get "index out of bounds"...why?



More information about the SciPy-user mailing list