Why the 'self' argument?
bokr at oz.net
Sat Sep 6 02:52:55 CEST 2003
On Fri, 5 Sep 2003 20:15:00 -0400, "John Roth" <newsgroups at jhrothjr.com> wrote:
>If you don't have to write "self" as the first parameter of a method,
>that reduces the complexity. Everything else remains the same.
Except for cases where two self-parameters are visible at the same time,
and both are used in an inner scope and must be distinguished by giving
them different names. ISTM you'd have to turn off some dynamic capabilities
of python to make "self" implicit. (An example came up in a past discussion,
some time ago).
More information about the Python-list