How much is set in stone?
Paul Rubin
phr-n2001d at nightsong.com
Tue Nov 13 01:20:49 EST 2001
"Tim Peters" <tim.one at home.com> writes:
> On the bright side of darkness <wink>, not all of cPickle got
> documented. We'll try to repair that for 2.2. In particular, you
> can set a find_global attribute on a cPickle Unpickler to supply
> your own function for resolving names, and of special interest is
> that if you set it to None, the Unpickler won't import modules or
> unpickle class instances at all. You could, of course, also supply
> a function that accetps only a set of blessed names (etc).
Great! This sounds like a pretty flexible way to fix the problem, so
it's cool that the code was already there for it.
More information about the Python-list
mailing list