[Tutor] For Loop Question

Alan Gauld alan.gauld at btinternet.com
Tue Dec 25 00:49:47 CET 2012


On 24/12/12 16:31, bob gailer wrote:
> On 12/23/2012 9:02 PM, Alan Gauld wrote:
>>
>> You do realize that self is only defined inside a method?
> Perhaps.
>
> self is just another name - it  could be "just" a variable, outside any
> method.

True enough, but given the usage "self.A" it looks pretty certain in 
this case it follows convention and signifies an instance.

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/



More information about the Tutor mailing list