well how about my code first.
its really just some simple code to get used to the envirement(sp?)
but all this does is give me a window for 0.5 seconds or something. eh :PCode:class classtest: sttr="test a string"; def fname(self): return "Testing function" getclass=classtest(); print getclass.sttr; print getclass.fname();
and for the question:
ive read 2 tutorials on classes (including one on DevShed) but really dont get what the self argument is for.
can someone explain what that does and how to use it?! =/
same for __init__, they keep on talking about that stuff but they really dont explain it to you in english