Re: Help with 'self' and 'set_usage'

2013-07-10 Thread L O'Shea
On Tuesday, 9 July 2013 18:03:41 UTC+1, L O'Shea wrote: > Hi all, > > I'm interning and have been given the job of extending a program that has > been written by someone else. I've never used Python before so it's a bit of > a struggle but I've got to say I'm loving the language so far. > > >

Re: Help with 'self' and 'set_usage'

2013-07-09 Thread Andrew Berg
On 2013.07.09 12:03, L O'Shea wrote: > Could anyone shed some light on this? I can't find mention of this anywhere > in any Python documentation or anywhere else in the code where usage_str > might be defined. In Python, you don't declare or initialize variables before using them. In the example

Re: Help with 'self' and 'set_usage'

2013-07-09 Thread Antoon Pardon
Op 09-07-13 19:03, L O'Shea schreef: Hi all, I'm interning and have been given the job of extending a program that has been written by someone else. I've never used Python before so it's a bit of a struggle but I've got to say I'm loving the language so far. In on of the scripts there is def se

Re: Help with 'self' and 'set_usage'

2013-07-09 Thread Ethan Furman
On 07/09/2013 10:03 AM, L O'Shea wrote: Hi all, Howdy! I'm interning and have been given the job of extending a program that has been written by someone else. I've never used Python before so it's a bit of a struggle but I've got to say I'm loving the language so far. Excellent way to st

Help with 'self' and 'set_usage'

2013-07-09 Thread L O'Shea
Hi all, I'm interning and have been given the job of extending a program that has been written by someone else. I've never used Python before so it's a bit of a struggle but I've got to say I'm loving the language so far. In on of the scripts there is def set_usage(self,s): self.usage_str = s