Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!news.tele.dk!feed118.news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'digest': 0.04; 'from:addr:yahoo.co.uk': 0.04; 'parameters': 0.04; 'argument': 0.05; 'source.': 0.07; 'wednesday,': 0.07; '__init__': 0.09; 'arguments': 0.09; 'function,': 0.09; 'lawrence': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'tismer': 0.09; 'wrong,': 0.09; 'python': 0.11; 'def': 0.12; 'definition.': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:values': 0.16; 'user-defined': 0.16; 'value"': 0.16; 'language': 0.16; 'wrote:': 0.18; 'passing': 0.19; '>>>': 0.22; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'advise.': 0.24; 'url:moin': 0.24; 'looks': 0.24; '---': 0.24; 'second': 0.26; 'read,': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'function': 0.29; 'correct': 0.29; 'getting': 0.31; 'lines': 0.31; 'url:wiki': 0.31; 'though.': 0.31; 'url:python': 0.33; 'could': 0.34; 'message.': 0.35; 'skip:s 30': 0.35; 'definition': 0.35; 'but': 0.35; 'google': 0.35; 'keyword': 0.36; 'method': 0.36; 'url:org': 0.36; 'christian': 0.38; 'to:addr :python-list': 0.38; 'issue': 0.38; 'rather': 0.38; 'extremely': 0.39; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'called': 0.40; 'read': 0.60; 'above,': 0.60; 'hope': 0.61; 'helps': 0.61; 'world.': 0.61; "you've": 0.63; 'kind': 0.63; '30,': 0.65; 'world': 0.66; 'dont': 0.67; 'believe': 0.68; 'guessed': 0.84; '2013': 0.98 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Mark Lawrence Subject: Re: function got multiple values for keyword argument for value Date: Wed, 30 Oct 2013 22:08:24 +0000 References: <3c5cfc8d-885e-439d-8e66-5c7630e00cb8@googlegroups.com> <60685d38-5147-4e18-9d36-cb98b9ae078f@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: host-78-147-27-80.as13285.net User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <60685d38-5147-4e18-9d36-cb98b9ae078f@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 70 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1383170920 news.xs4all.nl 15976 [2001:888:2000:d::a6]:49242 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:58138 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