Method takes exactly 2 arguments...but it doesn't...
jrh147 last edited by
I have a script that works great when run from within Pythonista. It calls another script by passing three arguments to it:
final = kraken(response['kraked_url'], path, name)
And this is what kraken() looks like:
However, when I run it as an iOS extension (which is what I really want to do), it ends up giving me this error:
TypeError: kraken() takes exactly 2 arguments (3 given)
What can I do to fix this?
ccc last edited by
What you have here looks like it should work. Could you please provide a minimal example that we can run that will throw this error?
scopaest last edited by
It should work...
When I try this:
def kraken(a,b,c): var1 = a+10 var2 = b+10 var3 = c+10 return(var1,var2,var3) final = kraken(1,2,3) print(final)
without an Error
Can u post a bigger example?