I\'m creating a numpy array which is to be filled with objects of a particular class I\'ve made. I\'d like to initialize the array such that it will only ever contain object
It has to be a Numpy scalar type:
http://docs.scipy.org/doc/numpy/reference/arrays.scalars.html#arrays-scalars-built-in
or a subclass of ndarray:
http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html#numpy.ndarray