Use empty string for self

Roy Smith roy at
Wed Mar 1 16:41:30 CET 2006

John Salerno  <johnjsal at> wrote:
>I do get it. I think I will just have to get used to seeing the 'self' 
>argument but understanding that it's not really something that is always 
>passed in. I'm trying to train myself to see
>def doittoit(self) as def doittoit()

That's OK as far as using your C++ experience to help understand
Python by analogy, but don't fall into the trap of trying to write C++
in Python.

More information about the Python-list mailing list