As MRAB described, ALL instance methods need to accept 'self' as a first parameter, as that will be passed to them implicitly when they are called.  This includes __init__.  The name 'self' is just a commonly accepted convention for the name of the instance object passed to methods.  You don't have to call it that, but you really should.<br>
<br>Take a look at <a href="http://docs.python.org/tutorial/classes.html#class-objects">http://docs.python.org/tutorial/classes.html#class-objects</a>  It might help shed some light on how methods and instances work.<br><br>
One other thing.  I'm a little confused by the first line of dcObject.__init__:<br><div style="margin-left: 40px;"><br>self.init_Pre() and self.init_Exec()<br></div><br>I suspect this does not do what you think it does.  init_Pre and init_Exec will both be called by this expression (unless init_Pre throws an exception, of course).  You're not getting anything here that you wouldn't by just calling each method on a separate line, except just making it harder to read.<br>
<br>Nat<br><br><br><div class="gmail_quote">On Fri, Jul 31, 2009 at 8:53 PM, Simon <span dir="ltr"><<a href="mailto:dciphercomputing@gmail.com">dciphercomputing@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi<br>
<br>
So should the dcObject class include the "self" as well since I have<br>
not defined an __init__ method in dcCursor?<br>
<font color="#888888"><br>
Simon<br>
</font><div><div></div><div class="h5"><br>
--<br>
<a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br>
</div></div></blockquote></div><br>