commit | a92d16aaec1dc3c0d2e54c27516853b3e1bbd96a | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Sat Aug 18 21:22:07 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Sat Aug 18 21:22:07 2001 +0000 |
tree | c80a0587ec574efdaefeafb9bf3dbf4db07a4ff0 | |
parent | 9454ad7263e1f1ebda090bf0ec4920695dfd4558 [diff] |
SF patch #452239 by Gordon McMillan, to fix SF bug #451547. This patch attempts to do to cPickle what Guido did for pickle.py v 1.50. That is: save_global tries importing the module, and fetching the name from the module. If that fails, or the returned object is not the same one we started with, it raises a PicklingError. (All this so pickling a lambda will fail at save time, rather than load time).