I belong to the Old School where getting my head around OO is just one big
pain. I write software by modularization executed as a set of functions - and
it works (some call this functional programming!). Whenever I review Python
books (eg. Lutz's excellent Programming Python, 3ed) the code is laid out with
Def's followed by Classes (with their own Def's) which is as it should be.
But, the Def's on their own (ie. not in Classes) are all of the form:
> def abc(self):
<do something>
return <return list>
or,
> def xyz(self, <parameter list>):
<do something>
return <return list>
I don't use 'self' in my def's - should I? If so, why?
Thanks!
Dinesh
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor