python Programming Glossary: person4.population
__del__ method being called in python when it is not expected http://stackoverflow.com/questions/1935153/del-method-being-called-in-python-when-it-is-not-expected #When the person is created they increase the population Person4.population 1 def __del__ self '''I am dying''' print ' s says bye' self.name.. self '''I am dying''' print ' s says bye' self.name Person4.population 1 if Person4.population 0 print 'I am the last one' else print.. print ' s says bye' self.name Person4.population 1 if Person4.population 0 print 'I am the last one' else print 'There are still d left'..
|