[Numpy-discussion] Attributes vs functions in numarray.

Ralf Juengling juenglin at informatik.uni-freiburg.de
Wed Sep 18 01:16:02 EDT 2002


On Mon, 2002-09-16 at 22:11, Tim Hochberg wrote:
> 
> Can someone refresh my memory as to why some properties of NumArrays that
> are conceptually attributes are accessed as atributes (a.shape, a.rank),
> while others are accessed through functions (a.type, a.iscontiguous,...).

Yes, I'd like to understand as well; there is even a third. There are
attributes, e.g. a.shape       vs
methods,    e.g. a.type()      vs
functions   e.g. len(a).

Regards,
Ralf



> 
> Thanks,
> 
> -tim
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
-- 
-------------------------------------------------------------------------
Ralf Jüngling
Institut für Informatik - Lehrstuhl f. Mustererkennung &
Bildverarbeitung
Georges-Köhler-Allee
Gebäude 52                                       Tel:
+49-(0)761-203-8215
79110 Freiburg                                   Fax:
+49-(0)761-203-8262
-------------------------------------------------------------------------





More information about the NumPy-Discussion mailing list