could anyone please explain what's wrong with it ? am I doing something wrong ?
>>> class qw:
... def f2x(par1, par2, par3):
... print par1, par2, par3
...
>>> obj = qw()
>>> obj.f2x("123", 13, "wert") Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f2x() takes exactly 3 arguments (4 given)
>>>
if I will define just a function it's all working fine
>>> def f2x(par1, par2, par3):
... print par1, par2, par3
...
>>> f2x("1", 2, "too many")
1 2 too many
>>>