error: 'staticmethod' object is not callable
Michal Vitecek
fuf at mageo.cz
Wed Feb 11 09:20:56 EST 2004
Peter Otten wrote:
>You are wrapping method2() twice:
>
>class A(object):
> def method(parA):
> print "in A.method()"
> method = staticmethod(staticmethod(method))
>
>A.method("first")
>
>Why would you expect this to work?
i don't expect this to work. i just don't get it why python allows this
double wrapping of a method. it cannot be used for anything reasonable,
can it?
--
fuf (fuf at mageo.cz)
More information about the Python-list
mailing list