Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #58129

Re: function got multiple values for keyword argument for value

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: function got multiple values for keyword argument for value
Date 2013-10-30 21:34 +0000
References <3c5cfc8d-885e-439d-8e66-5c7630e00cb8@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.1853.1383168877.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 30/10/2013 21:10, kavithabhaskaran2013@gmail.com wrote:
> 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.
>

I suspect that you've a method rather than a function so I hope this 
helps 
http://stackoverflow.com/questions/18821193/typeerror-init-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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

function got multiple values for keyword argument for value kavithabhaskaran2013@gmail.com - 2013-10-30 14:10 -0700
  Re: function got multiple values for keyword argument for value John Gordon <gordon@panix.com> - 2013-10-30 21:14 +0000
    Re: function got multiple values for keyword argument for value kavithabhaskaran2013@gmail.com - 2013-10-30 14:21 -0700
  Re: function got multiple values for keyword argument for value Chris Angelico <rosuav@gmail.com> - 2013-10-31 08:33 +1100
  Re: function got multiple values for keyword argument for value Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-30 21:34 +0000
    Re: function got multiple values for keyword argument for value KR <kavithabhaskaran2013@gmail.com> - 2013-10-30 14:50 -0700
      Re: function got multiple values for keyword argument for value KR <kavithabhaskaran2013@gmail.com> - 2013-10-30 14:56 -0700
        Re: function got multiple values for keyword argument for value Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-30 22:10 +0000
      Re: function got multiple values for keyword argument for value Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-10-30 22:08 +0000

csiph-web