Re: Need help to understand garbage collection

2007-10-07 Thread David Tremouilles
Thanks Gabriel! I get it now. With your help I was able to focus on the real problem. Here is the correctly working example for the record: import gc class Test(object): def __init__(self): pass gc.collect() original_objects_id = [id(x) for x in gc.get_objects()] #create object a a

Need help to understand garbage collection

2007-10-06 Thread David Tremouilles
I would need help to understand how garbage collection work and how to trace objects... In the example below an object is created and deleted. Why in the second part of the example I do not see any object removed: import gc class Test(object): def __init__(self): pass gc.collect

Re: Need help to understand garbage collection

2007-10-06 Thread Gabriel Genellina
En Sat, 06 Oct 2007 14:16:36 -0300, David Tremouilles [EMAIL PROTECTED] escribi�: I would need help to understand how garbage collection work and how to trace objects... In the example below an object is created and deleted. Not exactly: an object is created and bound to the name a. Some