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
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
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
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
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
--
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
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!)
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,
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