Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #58120 > unrolled thread
| Started by | kavithabhaskaran2013@gmail.com |
|---|---|
| First post | 2013-10-30 14:10 -0700 |
| Last post | 2013-10-30 22:08 +0000 |
| Articles | 9 — 5 participants |
Back to article view | Back to comp.lang.python
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
| From | kavithabhaskaran2013@gmail.com |
|---|---|
| Date | 2013-10-30 14:10 -0700 |
| Subject | function got multiple values for keyword argument for value |
| Message-ID | <3c5cfc8d-885e-439d-8e66-5c7630e00cb8@googlegroups.com> |
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.
[toc] | [next] | [standalone]
| From | John Gordon <gordon@panix.com> |
|---|---|
| Date | 2013-10-30 21:14 +0000 |
| Message-ID | <l4rsrf$sjv$1@reader1.panix.com> |
| In reply to | #58120 |
In <3c5cfc8d-885e-439d-8e66-5c7630e00cb8@googlegroups.com> kavithabhaskaran2013@gmail.com writes: > 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? -- John Gordon Imagine what it must be like for a real medical doctor to gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
[toc] | [prev] | [next] | [standalone]
| From | kavithabhaskaran2013@gmail.com |
|---|---|
| Date | 2013-10-30 14:21 -0700 |
| Message-ID | <9c268c22-6d62-4d60-a865-b2bf6076abdf@googlegroups.com> |
| In reply to | #58121 |
> > > > > 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? > > > > -- > > John Gordon Imagine what it must be like for a real medical doctor to > > gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'. Hi John - it is an object.
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2013-10-31 08:33 +1100 |
| Message-ID | <mailman.1852.1383168829.18130.python-list@python.org> |
| In reply to | #58120 |
On Thu, Oct 31, 2013 at 8:10 AM, <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" 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
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-10-30 21:34 +0000 |
| Message-ID | <mailman.1853.1383168877.18130.python-list@python.org> |
| In reply to | #58120 |
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
[toc] | [prev] | [next] | [standalone]
| From | KR <kavithabhaskaran2013@gmail.com> |
|---|---|
| Date | 2013-10-30 14:50 -0700 |
| Message-ID | <60685d38-5147-4e18-9d36-cb98b9ae078f@googlegroups.com> |
| In reply to | #58129 |
On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: > On 30/10/2013 21:10, > > > 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 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__
[toc] | [prev] | [next] | [standalone]
| From | KR <kavithabhaskaran2013@gmail.com> |
|---|---|
| Date | 2013-10-30 14:56 -0700 |
| Message-ID | <e76aaf99-89d8-4d45-98a2-a8d90a2ad491@googlegroups.com> |
| In reply to | #58134 |
On Wednesday, October 30, 2013 2:50:03 PM UTC-7, KR wrote: > On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: > > On 30/10/2013 21:10, > > > 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 > 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.
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-10-30 22:10 +0000 |
| Message-ID | <mailman.1860.1383171306.18130.python-list@python.org> |
| In reply to | #58136 |
On 30/10/2013 21:56, KR wrote: > On Wednesday, October 30, 2013 2:50:03 PM UTC-7, KR wrote: >> On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: >>> On 30/10/2013 21:10, >>>> 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 >> 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. > Thanks for this, it's very much appreciated. Please ignore my second request for action, I hadn't seen this :) -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2013-10-30 22:08 +0000 |
| Message-ID | <mailman.1859.1383170920.18130.python-list@python.org> |
| In reply to | #58134 |
On 30/10/2013 21:50, KR wrote: > On Wednesday, October 30, 2013 2:34:19 PM UTC-7, Mark Lawrence wrote: >> On 30/10/2013 21:10, >> >>> 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 > > 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__ > So I guessed wrong, the world won't stop. Looks as if I was correct about google groups though. Please read and action the link above, it's extremely annoying getting masses of completely unwanted lines coming from one very specific source. -- Python is the second best programming language in the world. But the best has yet to be invented. Christian Tismer Mark Lawrence
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web