Why the 'self' argument?

Michael Peuser mpeuser at web.de
Fri Sep 5 16:51:10 EDT 2003


"Grzegorz Staniak" <gstaniak at inka.zagiel.pl>

> I'm a newbie Python user, a systems administrator - I've been trying
> to switch from Perl to Python for administrative tasks - and one thing
> I cannot understand so far is why I need the special 'self' (or anything
> esle) argument in class method definitions.

You probably do not mean "class methods"; this a technical term in OOP.

The Python class basics are *very* similar to the implementation of Perl
classes!!
You should not have much problems....

Kindly
Michael P






More information about the Python-list mailing list