[Numpy-discussion] Re-implementation of Python Numerical arrays (Numeric) available for download

Tim Hochberg tim.hochberg at ieee.org
Sun Nov 25 10:50:02 CST 2001


From: "Paul Barrett" <Barrett at stsci.edu>


> Perry Greenfield wrote:
>
> >
> > An early beta version is available on sourceforge as the
> > package Numarray (http://sourceforge.net/projects/numpy/)
> >
> > Information on the goals, changes in user interface, open issues,
> > and design can be found at http://aten.stsci.edu/numarray
>
>
>   6) Should array properties be accessible as public attributes
>     instead of through accessor methods?
>
>     We don't currently allow public array attributes to make
>     the Python code simpler and faster (otherwise we will
>     be forced to use __setattr__ and such). This results in
>     incompatibilty with previous code that uses such attributes.
>
>
> I prefer the use of public attributes over accessor methods.

As do I. As of Python 2.2, __getattr__/__setattr__ should not be required
anyway: new style classes allow this to be done in a more pleasent way. (I'm
still too fuzzy on the details to describe it coherently here though).

-tim





More information about the Numpy-discussion mailing list