function got multiple values for keyword argument for value

  • Thread starter kavithabhaskaran2013
  • Start date
K

kavithabhaskaran2013

search(lane,value=None,start=105,stop=115,GUI=True) -> function definition
search(lane,value=value,start=start, stop=stop,GUI=True) -> function call

I get the error "search()" got multiple keyword argument for value"

I understand when this error comes up - if I had a function definition like below

def func(a):
---

and if I called it as "func(0,a)" where I am passing 2 parameters instead of 1, I would end up with the error message.

I dont follow why I get it when the number of arguments I am calling with the function call match the parameters in the definition.

Please advise.
 
J

John Gordon

In said:
search(lane,value=None,start=105,stop=115,GUI=True) -> function definition
search(lane,value=value,start=start, stop=stop,GUI=True) -> function call
I get the error "search()" got multiple keyword argument for value"
I dont follow why I get it when the number of arguments I am calling with the function call match the parameters in the definition.

What type is "value" expected to be? A single item, a list, a dict, etc?
 
K

kavithabhaskaran2013

What type is "value" expected to be? A single item, a list, a dict, etc?



--

John Gordon Imagine what it must be like for a real medical doctor to

(e-mail address removed) watch 'House', or a real serial killer to watch 'Dexter'.

Hi John - it is an object.
 
C

Chris Angelico

search(lane,value=None,start=105,stop=115,GUI=True) -> function definition
search(lane,value=value,start=start, stop=stop,GUI=True) -> function call

I get the error "search()" got multiple keyword argument for value"

Cut your example down to just what you need to show the problem, and
then copy and paste both the code and the full exception traceback. I
suspect it's not quite what you think it is... maybe you're not
looking at the right line of code, because that function call looks
fine to me.

ChrisA
 
K

KR

On 30/10/2013 21:10,






I suspect that you've a method rather than a function so I hope this

helps

http://stackoverflow.com/questions/...got-multiple-values-for-keyword-argument-name



I also believe that you could be using google groups in which case would

you please be kind enough to read, digest and action this

https://wiki.python.org/moin/GoogleGroupsPython
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence

Mark - I am not having an issue with __init__. It has nothing to do with "self". It is a user-defined function, but it is not __init__
 
K

KR

Mark - I am not having an issue with __init__. It has nothing to do with "self". It is a user-defined function, but it is not __init__

Cleaned up even better. Sorry that I missed it in my last post.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top