[Tutor] static methods & class methods
Surya K
suryak at live.com
Fri Apr 20 17:32:11 CEST 2012
I have a class, and want to use a method of it in the class itself.
How can I do it?
I mean, say I defined foo() , bar() methods in a class myClass. So, how can we i use foo() in bar(). I tried to use @staticmethod, @classmethod, but I am getting some errors..
sometimes saying "unbound " and sometimes "given more than 1 parameters".. can any one tell me how to do this...
I java it really works well.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120420/738f7490/attachment.html>
More information about the Tutor
mailing list