Deprecate self
Fredrik Lundh
fredrik at pythonware.com
Wed Apr 18 12:23:06 EDT 2001
"Luke" trolls again:
> Java's system works just fine. It is assumed when you are writing a class,
> that a variable is part of that class. It makes more sense. After all why
> wouldn't you assume first that a variable that is part of a class belongs to
> that class. If you are dumb and want to put an identical variable in a local
> scope in a function, for example, then you use this.foo to distinguish. Java
> is more logical IMHO
looks like you haven't studied Python's class model close enough
to actually know what you're talking about here...
(hint: how do you declare class members in Python?)
Cheers /F
More information about the Python-list
mailing list