Memory leak when spawning

jurgen.defurne at philips.com jurgen.defurne at philips.com
Thu Feb 15 08:19:16 EST 2001


I thought that I could use None, like 'undef' in Perl.

Any suggestions on that ?

I'll implement the change and try again.

Thanks.

Jurgen




MarkH at ActiveState.com@SMTP at python.org on 15/02/2001 14:04:39
Sent by:	python-list-admin at python.org
To:	python-list at python.org@SMTP
cc:	 
Subject:	Re: Memory leak when spawning
Classification:	

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.

--
http://mail.python.org/mailman/listinfo/python-list






More information about the Python-list mailing list