__init__() not called automatically

Jeremy Sanders jeremy+plusnews at jeremysanders.net
Thu May 26 06:40:18 EDT 2005


On Wed, 25 May 2005 21:31:57 -0700, Sriek wrote:

> Similarly, why do we have to explicitly use the 'self' keyword everytime?

I didn't like that when starting Python. Now when I look back at C++ code,
I find it very hard to work out which variables and methods and members,
and which are not, unless the author used a clear naming convention.

Jeremy




More information about the Python-list mailing list