diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-01-24 19:29:52 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2003-01-24 19:29:52 +0000 |
commit | 3422c99de1d1c001ebc1416e3efc1b10452347b5 (patch) | |
tree | 1a2ec5eb8d8719c98528b467ecb88032167e17f8 /Lib/test/test_datetime.py | |
parent | 234d9a9eb390fc0975ca6fe8d010c45642bcdfed (diff) | |
download | cpython-git-3422c99de1d1c001ebc1416e3efc1b10452347b5.tar.gz |
Raise PicklingError when __reduce__() fails, and
add memoize() helper function to update the memo.
The first element of the tuple returned by __reduce__() must be a
callable. If it isn't the Unpickler will raise an error. Catch this
error in the pickler and raise the error there.
The memoize() helper also has a comment explaining how the memo
works. So methods can't use memoize() because the write funny codes.
Diffstat (limited to 'Lib/test/test_datetime.py')
0 files changed, 0 insertions, 0 deletions