<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
</head>
<body text="#330099" bgcolor="#FFFFFF">
Hi,<br>
I use a module downloaded from the net. Now I want to build my own
class, based on the class SerialInstrument offered in this module -
and in my class I would like to initialize a few things, using e. g.
the method clear() offered by SerialInstrument. Hence I type:<br>
<br>
class myClass(SerialInstrument)<br>
self.clear(self)<br>
def f1(self, str1, str2)<br>
...do something etc.<br>
<br>
I then get the message "self not know" from the statement
self.clear(self). I have tried many other notations - none worked.
What works is however the following code - specifying myClass
without the self.clear(self) in it:<br>
<br>
x = myClass("argument")<br>
x.clear()<br>
<br>
How can I integrate this call into the definition of myClass? Thanks
for advice.<br>
Bob<br>
</body>
</html>