On Mon, 2006-05-22 at 14:28 -0400, Andrew Robert wrote:
> When I try to use the class listed below, I get the statement that
> self
> is not defined.
>
> test=TriggerMessage(data)
> var = test.decode(self.qname)
^^^^
Perhaps
var = test.decode()
would do what you want.
It is not clear why you are trying to use a "qname" argument when
decode's only argument is self. test.decode will bind self to the test
object.
Alan Gauld's web site has a useful discussion of OOP programming.
http://www.freenetpages.co.uk/hp/alan.gauld
--
Lloyd Kvam
Venix Corp
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor