Re: [Numpy-discussion] np.zeros of structured array of array of objects

2014-07-12 Thread Nathaniel Smith
On Fri, Jul 11, 2014 at 8:39 AM, Julian Taylor wrote: > Hi, > looking at https://github.com/numpy/numpy/issues/4857 I noticed that > np.zeros of a structured array of array of objects only initializes the > first element of if the embedded array to zero and leaves the rest None: > > In [1]: a = nu

[Numpy-discussion] np.zeros of structured array of array of objects

2014-07-11 Thread Julian Taylor
Hi, looking at https://github.com/numpy/numpy/issues/4857 I noticed that np.zeros of a structured array of array of objects only initializes the first element of if the embedded array to zero and leaves the rest None: In [1]: a = numpy.zeros(10, dtype=[('multiple objects', object, 2)]); a Out[1]: