[Tutor] Accessing methods in same class

Peter Lavelle lists at solderintheveins.co.uk
Sun Nov 6 22:23:03 CET 2011


Hi,

Could you post a copy of the code you are working on, so we can help you 
better with this?

Usually, when calling a method in the same class you use the syntax: 
self.method_name()

'self' refers to an attribute or method within the same class.

Sorry, if this does not help you.

Regards

Peter Lavelle


More information about the Tutor mailing list