Re: function got multiple values for keyword argument for value

2013-10-30 Thread Mark Lawrence
low.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 progra

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Mark Lawrence
low.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 be

Re: function got multiple values for keyword argument for value

2013-10-30 Thread KR
he 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

Re: function got multiple values for keyword argument for value

2013-10-30 Thread KR
l 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

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Mark Lawrence
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

Re: function got multiple values for keyword argument for value

2013-10-30 Thread Chris Angelico
On Thu, Oct 31, 2013 at 8:10 AM, 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 w

Re: function got multiple values for keyword argument for value

2013-10-30 Thread kavithabhaskaran2013
> > > > > 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

Re: function got multiple values for keyword argument for value

2013-10-30 Thread John Gordon
In <3c5cfc8d-885e-439d-8e66-5c7630e00...@googlegroups.com> kavithabhaskaran2...@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 key

function got multiple values for keyword argument for value

2013-10-30 Thread kavithabhaskaran2013
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 bel

Re: multiple values for keyword argument

2011-02-01 Thread Patty
Here is a list of the compiled personalities... #-- Moderates --# Patty ? 26 moderates 31 trolls, minions, sockpuppets, and or flamers 2 missing in action = This community needs serious help! -- http://mail.python.org/mailman/listinfo/python-list How Embarrass

Re: multiple values for keyword argument

2011-02-01 Thread Patty
- Original Message - From: "Jean-Michel Pichavant" To: "Patty" Cc: Sent: Tuesday, February 01, 2011 2:27 AM Subject: Re: multiple values for keyword argument Patty wrote: pa...@cruzio.com wrote: I have been avoiding understanding this 'self', [

Re: multiple values for keyword argument

2011-02-01 Thread Jean-Michel Pichavant
Patty wrote: pa...@cruzio.com wrote: I have been avoiding understanding this 'self', [snip] Regards, Patty What is to be understood ?? self references the instance. Did I miss something ? JM Yes, there was more. And it's been fully explained at this point. Patty Hmm... I re-

Re: multiple values for keyword argument

2011-01-31 Thread Westley Martínez
z > >To: python-list@python.org > >Sent: Monday, January 31, 2011 3:27 PM > >Subject: Re: multiple values for keyword argument > > > >http://en.wikipedia.org/wiki/Self_(computer_science) > > He

Re: multiple values for keyword argument

2011-01-31 Thread Patty
>- Original Message - >From: Westley Martínez >To: python-list@python.org >Sent: Monday, January 31, 2011 3:27 PM >Subject: Re: multiple values for keyword argument >http://en.wikipedia.org/wiki/Self_(computer_science) Hello Westley: Thank you for

Re: multiple values for keyword argument

2011-01-31 Thread Westley Martínez
http://en.wikipedia.org/wiki/Self_(computer_science) On Mon, 2011-01-31 at 13:20 -0800, Patty wrote: > - Original Message - > From: "Jean-Michel Pichavant" > To: > Cc: > Sent: Monday, January 31, 2011 11:35 AM > Subject: Re: multiple values for k

Re: multiple values for keyword argument

2011-01-31 Thread Patty
- Original Message - From: "Jean-Michel Pichavant" To: Cc: Sent: Monday, January 31, 2011 11:35 AM Subject: Re: multiple values for keyword argument pa...@cruzio.com wrote: I have been avoiding understanding this 'self', [snip] Regards, Patty What

Re: multiple values for keyword argument

2011-01-31 Thread Jean-Michel Pichavant
pa...@cruzio.com wrote: I have been avoiding understanding this 'self', [snip] Regards, Patty What is to be understood ?? self references the instance. Did I miss something ? JM -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple values for keyword argument

2011-01-31 Thread patty
> On 29 January 2011 18:39, wrote: >>> I, myself, use the spanish word 'yo' instead (less keystrokes, I hate >>> 'self', and it amuses me); if I'm working with my numerical experiments >>> I'll use 'n' or 'x'... although, when posting sample code to c.l.py I >>> do >>> try to use 'self' to avoid

Re: multiple values for keyword argument

2011-01-31 Thread Simon Brunning
On 29 January 2011 18:39, wrote: >> I, myself, use the spanish word 'yo' instead (less keystrokes, I hate >> 'self', and it amuses me); if I'm working with my numerical experiments >> I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do >> try to use 'self' to avoid possible c

Re: multiple values for keyword argument

2011-01-30 Thread Patty
Well - this is all timely email. I just spent the day configuring my HP mini netbook running Windows 7 with all the right software based on recomendations from folks on this list, from the Python Tutor list and an email group of former colleagues where I spelled out exactly all the programming

Re: multiple values for keyword argument

2011-01-30 Thread Steven D'Aprano
On Sat, 29 Jan 2011 10:39:49 -0800, patty wrote: > I am glad you said this. I have been avoiding understanding this > 'self', just accepting it :} For the time being, since my programs I am > creating are for my own use, I think I will make my own names up, that > are descriptive to me as the pr

Re: multiple values for keyword argument

2011-01-29 Thread Ethan Furman
pa...@cruzio.com wrote: I, myself, use the spanish word 'yo' instead (less keystrokes, I hate 'self', and it amuses me); if I'm working with my numerical experiments I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do try to use 'self' to avoid possible confusion. :) I am

Re: multiple values for keyword argument

2011-01-29 Thread Steven D'Aprano
On Sat, 29 Jan 2011 09:03:28 -0500, Roy Smith wrote: > In article <8qijsgfgu...@mid.dfncis.de>, > Frank Dierkes wrote: > >> Naming the first parameter self is only a convention. It could be any >> other name, too. > > But it shouldn't. The use of "self" is so universal that using anything > e

Re: multiple values for keyword argument

2011-01-29 Thread Ben Finney
pa...@cruzio.com writes: > > I, myself, use the spanish word 'yo' instead (less keystrokes, I > > hate 'self', and it amuses me); if I'm working with my numerical > > experiments I'll use 'n' or 'x'... although, when posting sample > > code to c.l.py I do try to use 'self' to avoid possible confus

Re: multiple values for keyword argument

2011-01-29 Thread Ben Finney
Tobias Blass writes: > Ok it works now. So the problem was that python requires 'self' to be > the first parameter? More accurately, the instance is passed as the first parameter, and Python doesn't care what you name it. (Your fellow programmers do care, though, so please stick to the ‘self’ co

Re: multiple values for keyword argument

2011-01-29 Thread patty
> Roy Smith wrote: >> In article <8qijsgfgu...@mid.dfncis.de>, >> Frank Dierkes wrote: >> >>> Naming the first parameter self is only a convention. It could be any >>> other name, too. >> >> But it shouldn't. The use of "self" is so universal that using anything >> else will just make your code

Re: multiple values for keyword argument

2011-01-29 Thread Tobias Blass
in >>>> win =MainWin() >>>> File "./abirechner.py", line 43, in __init__ >>>> self.create_edit(row=i); >>>> TypeError: create_edit() got multiple values for keyword argument 'row' >>>> >>>> I don

Re: multiple values for keyword argument

2011-01-29 Thread Ethan Furman
Roy Smith wrote: In article <8qijsgfgu...@mid.dfncis.de>, Frank Dierkes wrote: Naming the first parameter self is only a convention. It could be any other name, too. But it shouldn't. The use of "self" is so universal that using anything else will just make your code more difficult for ot

Re: multiple values for keyword argument

2011-01-29 Thread Roy Smith
In article <8qijsgfgu...@mid.dfncis.de>, Frank Dierkes wrote: > Naming the first parameter self is only a convention. It could be any > other name, too. But it shouldn't. The use of "self" is so universal that using anything else will just make your code more difficult for other people to u

Re: multiple values for keyword argument

2011-01-29 Thread Peter Otten
trying to execute the program below I >>> get the following error message. >>> >>> Traceback (most recent call last): >>> File "./abirechner.py", line 64, in >>> win =MainWin() >>> File "./abirechner.py", line 43, in __ini

Re: multiple values for keyword argument

2011-01-29 Thread Frank Dierkes
On Sat, 29 Jan 2011 14:18:30 +0100, Tobias Blass wrote: > On Sat, 29 Jan 2011, Francesco Bochicchio wrote: > >>> class MainWin(Frame): >>>         def create_edit(row,self): >>> def create_edit(self, row): >> >> >> > Ok it works now. So the problem was that python requires 'self' to be

Re: multiple values for keyword argument

2011-01-29 Thread Tobias Blass
>> following error message. >> >> Traceback (most recent call last): >>   File "./abirechner.py", line 64, in >>       win =MainWin() >>   File "./abirechner.py", line 43, in __init__ >>       self.create_edit(row=i); >> TypeError: cr

Re: multiple values for keyword argument

2011-01-29 Thread Francesco Bochicchio
t;   File "./abirechner.py", line 64, in >       win =MainWin() >   File "./abirechner.py", line 43, in __init__ >       self.create_edit(row=i); > TypeError: create_edit() got multiple values for keyword argument 'row' > > I don't really understand

multiple values for keyword argument

2011-01-29 Thread Tobias Blass
ainWin() File "./abirechner.py", line 43, in __init__ self.create_edit(row=i); TypeError: create_edit() got multiple values for keyword argument 'row' I don't really understand why create_edit gets multiple values, it gets one Integer after another (as I see it) Thanks for yo