summaryrefslogtreecommitdiffstats
path: root/Include/dictobject.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-08 15:15:16 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-08 15:15:16 (GMT)
commit9716aaa14c74e38ef2dfa305f5007636752d714f (patch)
tree9dcf5927ad2313470585e82217fd9f206e488131 /Include/dictobject.h
parent61280916f6e3b372142e00dad37e28f31bba2b68 (diff)
downloadcpython-9716aaa14c74e38ef2dfa305f5007636752d714f.zip
cpython-9716aaa14c74e38ef2dfa305f5007636752d714f.tar.gz
cpython-9716aaa14c74e38ef2dfa305f5007636752d714f.tar.bz2
Jim Fulton:
- Loading non-binary string pickles checks for insecure strings. This is needed because cPickle (still) uses a restricted eval to parse non-binary string pickles. This change is needed to prevent untrusted pickles like:: "S'hello world'*2000000\012p0\012." from hosing an application. - User-defined types can now support unpickling without executing a constructor. The second value returned from __reduce__ can now be None, rather than an argument tuple. On unpickling, if the second value returned from __reduce__ during pickling was None, then rather than calling the first value returned from __reduce__, directly, the __basicnew__ method of the first value returned from __reduce__ is called without arguments.
Diffstat (limited to 'Include/dictobject.h')
0 files changed, 0 insertions, 0 deletions