"self" - a python wart or "feature"

Gerrit Holl gerrit at nl.linux.org
Mon Feb 17 11:34:54 EST 2003


John Roth schreef op maandag 17 februari om 13:47:07 +0000:
> To give you an example of the issues with local variables,
> look at the "global" statement. It's there specifically to
> insure that you can assign to a variable at module level (that is,
> outside of the function definition.) If you didn't have an explicit
> "self," you'd have to do the same thing for classes.

...or you'd have to have preburly[1] syntax.

yours,
Gerrit.

preburly:
p e  rl
 r bu  y

-- 
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list