[Numpy-discussion] PyObject arrays

Garnet Chan gc238 at cornell.edu
Wed Mar 2 13:11:18 CST 2005


Hi All,
Do PyObject arrays works, more specifically Numeric arrays of Numeric arrays?
I've tried:

from Numeric import *
mat = zeros([2, 2], PyObject)
mat[0, 0] = zeros([2, 2])

which gives

ValueError: array too large for destination. It seems to be calling
PyArray_CopyObject; I noticed that there was some special code to make
arrays of strings work, but not for other objects.

This is on Python 2.3.4 and Numeric 23.3

thanks,
Garnet Chan







More information about the Numpy-discussion mailing list