]> granicus.if.org Git - python/commit
SF patch #452239 by Gordon McMillan, to fix SF bug #451547.
authorGuido van Rossum <guido@python.org>
Sat, 18 Aug 2001 21:22:07 +0000 (21:22 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 18 Aug 2001 21:22:07 +0000 (21:22 +0000)
commita92d16aaec1dc3c0d2e54c27516853b3e1bbd96a
treec80a0587ec574efdaefeafb9bf3dbf4db07a4ff0
parent9454ad7263e1f1ebda090bf0ec4920695dfd4558
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).
Modules/cPickle.c