Question on class member in python

Johnny Lee johnnyandfiona at hotmail.com
Mon Oct 17 10:27:18 CEST 2005


Class A:
   def __init__(self):
      self.member = 1

   def getMember(self):
      return self.member

a = A()

So, is there any difference between a.member and a.getMember? thanks
for your help. :)

Regards, 
Johnny




More information about the Python-list mailing list