]> granicus.if.org Git - python/commit
Charles Waldman writes:
authorGuido van Rossum <guido@python.org>
Fri, 21 Apr 2000 20:49:36 +0000 (20:49 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 21 Apr 2000 20:49:36 +0000 (20:49 +0000)
commit83addc7a0f7371ccb28c5fd3b090556b505d8a69
tree3298052c99b11c70b2fd54563380746c918ba694
parent2dd8dddef412c64692f2ba6eb297411a00ff5d29
Charles Waldman writes:

"""
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.
"""
Modules/cPickle.c