class Test(object):

    def __init__(self, name):
        self.name = name

def __del__(self):
    print('deleting {0}'.format(self.name))
print('discarded instance creation')
Test('hello')
print('saved instance creation')
myList = Test('bye')
print('program done')
python создает все из кучи?