total idiot question: +=, .=, etc...
greg.ewing at compaq.com
Fri Jun 25 00:25:55 CEST 1999
Reimer Behrends wrote:
> To remind you, pretty much every single OO language other
> than Python does not require you to add a self;
And in some of those languages, some people have
resorted to naming conventions to keep the various
scopes under control.
In the Object Pascal version of MacApp, for example,
Apple adopted the convention of prefixing the names
of all instance variables with "f" (for "field").
Mind you, Apple's Object Pascal is a somewhat
pathological case, since it's scope rules for
instance variables and local variables are,
shall we say, rather unintuitive...
More information about the Python-list