adding an attribute to an nd-array

Lisandro Dalcin dalcinl at
Thu Oct 19 15:46:48 CDT 2006

On 10/19/06, Robert Kern <robert.kern at> wrote:
> Travis Oliphant wrote:
> > I don't think the extra bytes for every ndarray object are worth it,
> > given how easy it is to sub-class and create your own ndarray that can
> > have attributes attached.    What are others opinions.
> I'd say leave it off. Many uses of that feature will require custom
> __array_finalize__ methods anyways.

I second Travis and Robert.

Lisandro Dalcín
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo

More information about the Numpy-discussion mailing list