summaryrefslogtreecommitdiffstats
path: root/Lib/tabnanny.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-08-18 21:22:07 (GMT)
committerGuido van Rossum <guido@python.org>2001-08-18 21:22:07 (GMT)
commita92d16aaec1dc3c0d2e54c27516853b3e1bbd96a (patch)
treec80a0587ec574efdaefeafb9bf3dbf4db07a4ff0 /Lib/tabnanny.py
parent9454ad7263e1f1ebda090bf0ec4920695dfd4558 (diff)
downloadcpython-a92d16aaec1dc3c0d2e54c27516853b3e1bbd96a.zip
cpython-a92d16aaec1dc3c0d2e54c27516853b3e1bbd96a.tar.gz
cpython-a92d16aaec1dc3c0d2e54c27516853b3e1bbd96a.tar.bz2
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).
Diffstat (limited to 'Lib/tabnanny.py')
0 files changed, 0 insertions, 0 deletions