Re: a small doubt

2008-12-21 Thread Bruno Desthuilliers
(answering to the OP) Piyush Anonymous wrote: i wrote this code -- class Person(object): instancesCount = 0 def __init__(self, title=): Person.instancesCount += 1 self.id http://self.id = tempst def testprint(self): print blah blah def

a small doubt

2008-12-20 Thread Piyush Anonymous
i wrote this code -- class Person(object): instancesCount = 0 def __init__(self, title=): Person.instancesCount += 1 self.id = tempst def testprint(self): print blah blah def __getattribute__(self, name): print in get attribute a = Person()

Re: a small doubt

2008-12-20 Thread MRAB
Piyush Anonymous wrote: i wrote this code -- class Person(object): instancesCount = 0 def __init__(self, title=): Person.instancesCount += 1 self.id http://self.id = tempst def testprint(self): print blah blah def __getattribute__(self, name):