need help with class of arrays which have attibutes

Emile van Sebille emile at fenx.com
Sat Dec 29 02:27:25 CET 2001


"Rob" <roblytle at ieee.org> wrote in message
news:pan.2001.12.28.15.45.35.83.2001 at ieee.org...
> Hi,
>
> I'm trying to contruct a class of arrays which have attributes.  This one
> respresents a wire[] array which can have x,y,z etc coordinates.  I just
> can't figure out how to do it.  Here is what I have so far:  (it uses
> Numpy)
<snip>

You need to review and work some with classes.  Start with section 9 in the
tutorial http://www.python.org/doc/current/tut/node11.html and look at the
__init__ references, which is used to initialize class instances.

HTH,


--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list