i don't really understand member variables..
gabor at realtime.sk
Thu Oct 24 02:54:16 CEST 2002
until now i thought i understand member variables...
but now i don't :-):
>>> class Test:
... data = 
>>> a = Test()
>>> b = Test()
so they are shared?
>>> b.data = ["y"]
now they aren't anymore....
so if i define some data after the class... line then those are static (
as in c++?) but why the stop being static in the second code-example?
i kind of begin to understand this, but could someone clarify this?
listening to Keitaro Takanami - Morning,Morning
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 196 bytes
Desc: This is a digitally signed message part
More information about the Python-list