Re: Class, object question.

2005-04-06 Thread harold fellermann
What I am wondering is if I have a 2nd init  or something similar to create a vector. Such as what follows and if I can how do I go about implementing it? Class vector(point): def __init___(self, point1, point2): self.i = point2.get_x() - point1.get_x() self.j = point2.get_y(

RE: Class, object question.

2005-04-05 Thread Ian Sparks
oint(4,4,4)   v2 = Vector(p1,p2)    Hope this helps.        -Original Message-From: Jeffrey Maitland [mailto:[EMAIL PROTECTED]Sent: Tuesday, April 05, 2005 10:04 AMTo: python-list@python.orgSubject: Class, object question. Hello folks,   The question I am having is something

Class, object question.

2005-04-05 Thread Jeffrey Maitland
Hello folks,   The question I am having is something like this.   # ignore the precursing ….  I am using them for easy message formatting   from point import *   Class vector(point): ..def __init___(self, point1, point2): …..self.i = point2.get_x() - point1.get_x()