Newbie question: what's with self?

2006-08-08 Thread donkeyboy
This is probably a really basic question, but anyway ... I'm new to both Python and OO programming. From looking at a number of code examples, the word self is used a lot when referring to classes. As such, what does self mean and/or do? I've read things that say it's a naming convention, but

Re: Newbie question: what's with self?

2006-08-08 Thread Farshid Lashkari
donkeyboy wrote: This is probably a really basic question, but anyway ... I'm new to both Python and OO programming. From looking at a number of code examples, the word self is used a lot when referring to classes. As such, what does self mean and/or do? I've read things that say it's a

Re: Newbie question: what's with self?

2006-08-08 Thread Simon Forman
donkeyboy wrote: This is probably a really basic question, but anyway ... I'm new to both Python and OO programming. From looking at a number of code examples, the word self is used a lot when referring to classes. As such, what does self mean and/or do? I've read things that say it's a

Re: Newbie question: what's with self?

2006-08-08 Thread Thomas Bartkus
donkeyboy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is probably a really basic question, but anyway ... I'm new to both Python and OO programming. From looking at a number of code examples, the word self is used a lot when referring to classes. As such, what does self

Re: Newbie question: what's with self?

2006-08-08 Thread BartlebyScrivener
donkeyboy wrote: but no-one has really spelt it out Go to: http://www.freenetpages.co.uk/hp/alan.gauld/ Look down the left-hand frames page until you see Advanced Topics | Object Oriented Programming Then find What is self? Good luck rd --

Re: Newbie question: what's with self?

2006-08-08 Thread skip
donkeyboy This is probably a really basic question, but anyway ... I'm donkeyboy new to both Python and OO programming. From looking at a donkeyboy number of code examples, the word self is used a lot when donkeyboy referring to classes. As such, what does self mean and/or

Re: Newbie question: what's with self?

2006-08-08 Thread Miki
Hello, I'm new to both Python and OO programming. From looking at a number of code examples, the word self is used a lot when referring to classes. As such, what does self mean and/or do? I've read things that say it's a naming convention, but no-one has really spelt it out (in idiot form!)

Re: Newbie question: what's with self?

2006-08-08 Thread Bruno Desthuilliers
donkeyboy wrote: This is probably a really basic question, but anyway ... I'm new to both Python and OO programming. From looking at a number of code examples, the word self is used a lot when referring to classes. Actually, it's used as the first parameter for methods of the classes - but,

Re: Newbie question: what's with self?

2006-08-08 Thread Bruno Desthuilliers
Miki wrote: (snip) If you know C++/Java then self is like this. But in Python, it's mandatory and must be the first arg for instance methods. -- http://mail.python.org/mailman/listinfo/python-list