All pastes #473868 Raw Edit

Joseph Armbruster

public text v1 · immutable
·published 2007-05-06 13:47 UTC
rendered paste body
class Person(object):
    population = 0

    def __init__(self):
	print 'inc'
        Person.population += 1

    def __del__(self):
	print 'del'
        print type(Person)
	print type(self.__class__)
	Person.population -= 1

tome = Person()