diff options
author | Barry Warsaw <barry@python.org> | 1998-01-26 22:47:35 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1998-01-26 22:47:35 +0000 |
commit | abe2a457de09d728ddd0704fc1de855adf263944 (patch) | |
tree | a6319828e132f7bf3598915f526cabffcc930c26 /Python/modsupport.c | |
parent | 5da0f504baa10c6125b5c7cc6dccc801f26f5ff0 (diff) | |
download | cpython-git-abe2a457de09d728ddd0704fc1de855adf263944.tar.gz |
Unpickler.load_inst(), Unpickler.load_obj(), Unpickler.load_build():
Fixed problems when unpickling in restricted execution environments.
These methods try to assign to an instance's __class__ attribute, or
access the instances __dict__, which are prohibited in REE. For the
first two methods, I re-implemented the old behavior when assignment
to value.__class__ fails.
For the load_build() I also re-implemented the old behavior when
inst.__dict__.update() fails but this means that unpickling in REE is
semantically different than unpickling in unrestricted mode.
Diffstat (limited to 'Python/modsupport.c')
0 files changed, 0 insertions, 0 deletions