Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread Doug Morse
Hi, My apologies for troubling for what is probably an easy question... it's just that can't seem to find an answer to this anywhere (Googling, pydocs, etc.)... I have a class method, MyClass.foo(), that takes keyword arguments. For example, I can say: x = MyClass() x.foo(trials=32) Works

Re: Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread John Machin
On Feb 25, 10:42 pm, Doug Morse [EMAIL PROTECTED] wrote: Hi, My apologies for troubling for what is probably an easy question... it's just that can't seem to find an answer to this anywhere (Googling, pydocs, etc.)... I have a class method, MyClass.foo(), that takes keyword arguments. For

Re: Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread bockman
On 25 Feb, 12:42, Doug Morse [EMAIL PROTECTED] wrote: Hi, My apologies for troubling for what is probably an easy question... it's just that can't seem to find an answer to this anywhere (Googling, pydocs, etc.)... I have a class method, MyClass.foo(), that takes keyword arguments.  For

Re: Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread Bruno Desthuilliers
Doug Morse a écrit : Hi, My apologies for troubling for what is probably an easy question... it's just that can't seem to find an answer to this anywhere (Googling, pydocs, etc.)... I have a class method, MyClass.foo(), that takes keyword arguments. For example, I can say: x =

Re: Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread Doug Morse
On Mon, 25 Feb 2008 04:20:37 -0800 (PST), John Machin [EMAIL PROTECTED] wrote: On Feb 25, 10:42 pm, Doug Morse [EMAIL PROTECTED] wrote: Hi, My apologies for troubling for what is probably an easy question... it's just that can't seem to find an answer to this anywhere (Googling,

Re: Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread Gary Herron
Doug Morse wrote: Hi, My apologies for troubling for what is probably an easy question... it's just that can't seem to find an answer to this anywhere (Googling, pydocs, etc.)... I have a class method, MyClass.foo(), that takes keyword arguments. For example, I can say: x = MyClass()