[Tutor] Just Learning Python

BELSEY, Dylan dylan.belsey@baesystems.com
Wed Oct 30 19:24:01 2002


Apologies to everyone....technical difficulties with the mail program

Hi Mark,
	The interpreter needs to know where the function exists.  Because
you have not told it that it lives in the class namespace it attempts to
look for it globally and cannot find it.
	To tell it that it is a method of the class, you need to prefix
these calls with  "self." just as you do for attributes of the class i.e.
"self.runit"

	HTH,
		Dylan