function got multiple values for keyword argument for value
Mark Lawrence
breamoreboy at yahoo.co.uk
Wed Oct 30 18:08:24 EDT 2013
More information about the Python-list mailing list
Wed Oct 30 18:08:24 EDT 2013
- Previous message (by thread): function got multiple values for keyword argument for value
- Next message (by thread): OT: Hierarchies (was Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): function got multiple values for keyword argument for value
- Next message (by thread): OT: Hierarchies (was Re: Possibly better loop construct, also labels+goto important and on the fly compiler idea.)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list