"self" - a python wart or "feature"

Nagy László nagylzs at freemail.hu
Tue Feb 18 11:56:52 CET 2003

> What I wish for - but am not sure if it's possible - is that the 
> function "stuff" could just be declared as"def  stuff(x=5)".
> The self references within the "stuff" function would be "known" to 
> the function by the level of it's "indentedness".  It just seems odd 
> to me to have to tell a function which instance it should bind to in 
> the first argument of the function declaration.

There are no pseudo variables in Python. There are a few keywords. There 
are no standard
identifiers at all (but I'm nor sure). I think keeping the rules simple 
is very important.
I would not be pleased with a new pseudo variable. Writting out 'self' 
makes the
definition syntactically more clear -- but this is only my personal 

  Laci 1.0

More information about the Python-list mailing list