No subject


Tue Oct 14 00:29:20 CEST 2008


<br>...&nbsp;&nbsp; return 0
<br>...
<br>>>> C.f
<br>&lt;unbound method C.f>
<br>>>> C.f = staticmethod(C.f)
<br>>>> C.f
<br>&lt;unbound method C.f>
<br>>>> C.f()
<br>Traceback (most recent call last):
<br>&nbsp; File "&lt;stdin>", line 1, in ?
<br>TypeError: unbound method f() must be called with C instance as first
argument (
<br>got nothing instead)
<p>What am I missing?
<p>Regards</html>






More information about the Cplusplus-sig mailing list