proposal, change self. to .

Russ P. Russ.Paielli at gmail.com
Tue Aug 5 20:28:42 CEST 2008


On Aug 3, 5:44 am, Nick Dumas <drako... at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It's also worth noting that you can use a different name for the object
> that represents your class. If you did def __init__(foo):pass, then you
> would be able to access the class's objects with foo.objectname. Using
> self is simply the recommended standard.

That is not a problem either. What the OP wanted could apply
regardless of what the first argument is named. In fact, an advantage
of what the OP requested would be that a person reading the code need
not be concerned with the name of the first argument.



More information about the Python-list mailing list