• Guido van Rossum's avatar
    Backport (the relevant part of) rexec.py 1.41. · d412a12f
    Guido van Rossum yazdı
    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.)
    d412a12f
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
acconfig.h Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...