None (was Re: Memory leak when spawning)
piet at cs.uu.nl
piet at cs.uu.nl
Wed Feb 21 09:27:03 EST 2001
>>>>> Mark Hammond <MarkH at ActiveState.com> (MH) writes:
MH> 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
MH> Hrm. Not really I am afraid. I dont see any leaks running this code.
MH> You should be able to trim it down to something with a tight loop (ie,
MH> very quick or no sleeping) and see the memory usage rise pretty
MH> quickly.
MH> Also, note that your code:
MH> (None, None, None,
MH> None, None, sec,
MH> None, None, None) = localtime(time())
MH> Is very very dangerous - it is changing the builtin value None!!
Wouldn't this be a good reason to make None a constant rather than a
built-in identifier?
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
More information about the Python-list
mailing list