]> granicus.if.org Git - python/commit
cPickle: exempt two_tuple from GC -- it's a speed hack, and doesn't
authorTim Peters <tim.peters@gmail.com>
Tue, 4 Feb 2003 21:47:44 +0000 (21:47 +0000)
committerTim Peters <tim.peters@gmail.com>
Tue, 4 Feb 2003 21:47:44 +0000 (21:47 +0000)
commit3e667d5452ce480eee2d4125c1209630e02ac574
tree521455459e6c62ba4c07aa8d698ef2a6654eaa36
parent5042da6b1e567039951cdfe6b822dd725012bdf1
cPickle:  exempt two_tuple from GC -- it's a speed hack, and doesn't
guarantee to keep valid pointers in its slots.

tests:  Moved ExtensionSaver from test_copy_reg into pickletester, and
use it both places.  Once extension codes get assigned, it won't be
safe to overwrite them willy nilly in test suites, and ExtensionSaver
does a thorough job of undoing any possible damage.

Beefed up the EXT[124] tests a bit, to check the smallest and largest
codes in each opcode's range too.
Lib/test/pickletester.py
Lib/test/test_copy_reg.py
Modules/cPickle.c