Mon, 31 Jan 2000 10:49:30 -0500
Speaking of redefining Numeric.zeros(),
I've had the need to create an array
of Nones, then fill up some of the entries.
It would be reasonably nice if Numeric.zeros(size, Numeric.PyObject)
produced an array of Nones, rather than the current
behavior of producing an array of integer zero python objects.
After all, a 'zero' PyObject isn't well defined:
you could want a string ('0'), an int (0), a float (0.0),
or a complex (0+0j). How is the poor package supposed to
read your mind? Better if it produces an array of Nones.
Often, one intends Numeric.zeros() to make an 'empty' array,
and an array of Nones is as empty as one can get.