Hi!

I can call a staticmethod f() of class C like "C.f()" or with an instance like "C().f()". Inside that staticmethod, I have neither the class (at least not the original one) nor do I have an instance, so I can't call a different staticmethod from the same class. The obvious solution is to make this a classmethod instead, with a mostly-unused "cls" parameter.

Am I missing something?

Uli
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to