memory leak?

Trevor Perrin trevp at trevp.net
Sun Aug 3 02:37:10 EDT 2003


Every time I run the below function from the interpreter, python.exe's
memory usage increases by 5 Megs and stays at this higher level
(python 2.3b2 on WinXP).  I tried to isolate this to something
simpler, but wasn't successful.

Is this a memory leak, or is there another explanation?


from array import *
import random

def test():    
    for x in range(10000):
        b = array('B', [random.randrange(0,256) for count in
range(64)])


Trevor




More information about the Python-list mailing list