Use empty string for self

Roy Smith roy at panix.com
Wed Mar 1 10:41:30 EST 2006


John Salerno  <johnjsal at NOSPAMgmail.com> 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