But within a class this is could be defined as self.x within the functions and changed, correct?
class a():
def __init__(self,a):
self.a = a
def f(self):
print self.a
def g(self):
self.a = 20
print self.a
a = a(1)
a.f()
a.g()
Yielding:
david@david-desktop:~$ python answer_to_email.py
1
20
david@david-desktop:~$
--
Best Regards,
David Hutto
CEO: http://www.hitwebdevelopment.com
--
http://mail.python.org/mailman/listinfo/python-list
