Why the 'self' argument?

Gerhard Häring gh at ghaering.de
Fri Sep 5 16:13:08 CEST 2003

Grzegorz Staniak wrote:
> Hello,
> 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. I might have missed an
> explanation in the docs, a quick Google search did not help. Is there
> somewhere on the web you could direct me to?

This entry of the Python FAQ:


-- Gerhard

More information about the Python-list mailing list