when and how do you use Self?

Steven D'Aprano steve at REMOVETHIScyber.com.au
Thu Nov 3 11:27:47 EST 2005


On Thu, 03 Nov 2005 10:14:23 +0100, bruno at modulix wrote:

> Tieche Bruce A MSgt USMTM/AFD wrote:
>> I am new to python,
>> 
>>  
>> 
>> Could someone explain (in English) how and when to use self?
>> 
> Don't use self. Use other.

Are you serious? You don't recommend doing this?

def MyClass:
    def __init__(self, x):
        self.x = x

???


-- 
Steven.




More information about the Python-list mailing list