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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'arguments': 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; '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; 'value"': 0.16; 'language': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'programming': 0.22; 'header:User-Agent:1': 0.23; 'error': 0.23; 'advise.': 0.24; 'url:moin': 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; 'url:wiki': 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; 'rather': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'received:org': 0.40; 'called': 0.40; 'hope': 0.61; 'helps': 0.61; 'world.': 0.61; "you've": 0.63; 'email addr:gmail.com': 0.63; 'kind': 0.63; 'dont': 0.67; 'believe': 0.68
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: function got multiple values for keyword argument for value
Date Wed, 30 Oct 2013 21:34:19 +0000
References <3c5cfc8d-885e-439d-8e66-5c7630e00cb8@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 <3c5cfc8d-885e-439d-8e66-5c7630e00cb8@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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1853.1383168877.18130.python-list@python.org> (permalink)
Lines 32
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1383168877 news.xs4all.nl 15979 [2001:888:2000:d::a6]:44293
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:58129

Show key headers only | 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