Memory leak when spawning

Mark Hammond MarkH at ActiveState.com
Thu Feb 15 07:46:42 EST 2001


jurgen.defurne at philips.com wrote:

> I don't know if this piece of source is small enough, but it is probably
> the smallest I can create with the same symptoms 

Hrm.  Not really I am afraid.  I dont see any leaks running this code.  You should be able to trim it down to something with a tight loop (ie, very quick or no sleeping) and see the memory usage rise pretty quickly.

Also, note that your code:
    (None, None, None,
     None, None, sec,
     None, None, None) = localtime(time())

Is very very dangerous - it is changing the builtin value None!!

Mark.




More information about the Python-list mailing list