On Fri, Feb 06, 2009 at 12:20:37AM -0600, Robert Kern wrote:
> On Fri, Feb 6, 2009 at 00:13, Christopher Barker <chris.bar...@noaa.gov> 
> wrote:
> > Travis Oliphant wrote:
> >>   What do people think
> >> about adding a default dictionary to every instance of a NumPy array.

> > It sound kind of heavyweight to me. I tend to use lots of small arrays
> > (to represent an x,y point, for instance). There are enough performance
> > issues with that as it stands. Maybe an empty dict isn't much, but it is
> > extra.

> I think we can create the dict on demand, so there will be no overhead
> except for the space for the pointer in the struct.

I am +1 for the dict created on demand. It seems like a great idea to
help subclassing.

Gaël
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to