• Guido van Rossum's avatar
    Charles Waldman writes: · 9c50cfd6
    Guido van Rossum authored
    """
    Problem description:
    
    	Run the following script:
    
    import test.test_cpickle
    for x in xrange(1000000):
        reload(test.test_cpickle)
    
    Watch Python's memory use go up up and away!
    
    In the course of debugging this I also saw that cPickle is
    inconsistent with pickle - if you attempt a pickle.load or pickle.dump
    on a closed file, you get a ValueError, whereas the corresponding
    cPickle operations give an IOError.  Since cPickle is advertised as
    being compatible with pickle, I changed these exceptions to match.
    """
    9c50cfd6
cPickle.c 106 KB