Why 'self' ?

Lucio Torre lucio at movilogic.com
Wed Oct 31 12:17:20 EST 2001


Schaefer, F. wrote:

>Hi all,
>
>It's been a while that I am working with Python and actually
>the only thing I really do not like about it is 'self' in the
>member function definitions as argument. If it
>has to be there anyway, it is totally redundant to write it.
>
>So, why is self there ?
>
>Thanks,
>
>Frank
>

Not sure this is THE reason. Maybe there are historical questions with 
bound and unbound methods. but the feature is cool.

classa.method(classb_instance, **args)

its the way to do super.__init__()

lucio





More information about the Python-list mailing list