REPOST: Re: need help with class of arrays which have attibutes

Emile van Sebille emile at fenx.com
Fri Dec 28 20:27:25 EST 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

---------

========= WAS CANCELLED BY =======:
Path: news.sol.net!spool0-nwblwi.newsops.execpc.com!newsfeeds.sol.net!newspump.sol.net!newsfeed.direct.ca!look.ca!newsfeed.dacom.co.kr!feeder.kornet.net!news1.kornet.net!ua4canc3ll3r
From: "Emile van Sebille" <emile at fenx.com>
Newsgroups: comp.lang.python
Subject: cmsg cancel <a0j6gt$l7dsi$1 at ID-11957.news.dfncis.de>
Control: cancel <a0j6gt$l7dsi$1 at ID-11957.news.dfncis.de>
Date: Mon, 31 Dec 2001 04:37:10 GMT
Organization: A poorly-installed InterNetNews site
Lines: 2
Message-ID: <cancel.a0j6gt$l7dsi$1 at ID-11957.news.dfncis.de>
NNTP-Posting-Host: 211.57.49.2
X-Trace: news2.kornet.net 1009774918 27193 211.57.49.2 (31 Dec 2001 05:01:58 GMT)
X-Complaints-To: usenet at news2.kornet.net
NNTP-Posting-Date: Mon, 31 Dec 2001 05:01:58 +0000 (UTC)
X-No-Archive: yes
X-Unac4ncel: yes
X-Commentary: I love NewsAgent 1.10 and the Sandblaster Cancel Engine Build 74 (19 March 1999)

This message was cancelled from within Mozilla.



More information about the Python-list mailing list