[Tutor] self self self

Isaac Isaac@compuserve.com
Mon, 17 Jul 2000 12:13:32 -0700


in java classes, the 'self' namespace is automatically
available.  instance methods automatically include the self ('this' in
java) as the first argument, so we don't have to worry about it.  And
the same goes for accessing instance vars and methods.

Is there any good and reasonable way to circumvent having to include
'self.' in front of every instance attribute reference in python?  Or if
not, what's the likelihood of the language adding an automatic search in
the class' (object's) namespace in the future?