From: Tim H. <tim...@ie...> - 2001-11-25 18:49:38
|
From: "Paul Barrett" <Ba...@st...> > 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 |