Roman Miklos wrote:
> class S(object):
>     @staticmethod
>     def staticM(pp):
>         print pp*2
>
>     def metod2(pp):
>         self.staticM(pp);
>
> si=S()
> si.metod2("nazdar ")
>   
Omlouvam se, jestli jsem uplne mimo, ale nemelo by to byt takhle?
class S:
    @staticmethod
    def staticM(cls, pp):
       print pp*2
    def method2(self, pp):
       self.staticM(self, pp)

si = S()
si.method2('nazdar ')

Leo
_______________________________________________
Python mailing list
[email protected]
http://www.py.cz/mailman/listinfo/python

Odpovedet emailem