calling class methods from class methods, help?

Chris Rebert clp2 at rebertia.com
Wed Mar 11 13:39:21 EDT 2009


On Wed, Mar 11, 2009 at 10:08 AM, Oltmans <rolf.oltmans at gmail.com> wrote:
> I've a multithreaded program in which I've to call class methods from
> class methods.

Um, those are instance methods, not class methods. Class methods take
the class itself as an argument (the parameter is typically named
"cls" instead of "self") and are defined with the help of the
classmethod() function, which is not the case in your code.

Cheers,
Chris

-- 
I have a blog:
http://blog.rebertia.com



More information about the Python-list mailing list