summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-09-15 06:18:29 (GMT)
committerGuido van Rossum <guido@python.org>2002-09-15 06:18:29 (GMT)
commit1caa07200779be05321149e89e449b3d979f7bb5 (patch)
treedd42d9e9f99c1f5cf80e50acaa2d203266b4a1e3 /Python/pythonrun.c
parentb6e835c5487d49c1495ff9c500b3c5318b0c4156 (diff)
downloadcpython-1caa07200779be05321149e89e449b3d979f7bb5.zip
cpython-1caa07200779be05321149e89e449b3d979f7bb5.tar.gz
cpython-1caa07200779be05321149e89e449b3d979f7bb5.tar.bz2
Backport (the relevant part of) rexec.py 1.41.
Address SF bug #577530: del __builtins__ breaks out of rexec Using the suggestion there: add_module() forces __builtin__ back; this fixes r_exec, r_eval, r_execfile. This does not mean that rexec is now considered safe! But for those willing to take the risk, it's safer than before. (Note that a safety analysis of the code module would be wise if you plan to use the interactive console for real -- I've only ever used it to play with restricted mode.)
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions