Re: class members vs instance members

2006-07-09 Thread hdixon
Bruno Desthuilliers wrote: > hdixon a écrit : > > Ive spent a few days going thru a couple of Python tutorials. No > > problem until I got to classes. I guess my java mindset is blocking my > > vision. > > Then http://dirtsimple.org/2004/12/python-is-not-java.html > > > I've borrowed another threa

Re: class members vs instance members

2006-07-09 Thread Bruno Desthuilliers
hdixon a écrit : > Ive spent a few days going thru a couple of Python tutorials. No > problem until I got to classes. I guess my java mindset is blocking my > vision. Then http://dirtsimple.org/2004/12/python-is-not-java.html > I've borrowed another thread's code snippet and cannot explain > the

class members vs instance members

2006-07-09 Thread hdixon
Ive spent a few days going thru a couple of Python tutorials. No problem until I got to classes. I guess my java mindset is blocking my vision. I've borrowed another thread's code snippet and cannot explain the results: class MyClass: list = [] myvar = 10 def add(self, x): self