Le Tuesday 24 February 2009 15:46:04 Andrew Dalke, vous avez écrit : > > And instead of trying to make tb_frame go away, I'd like to add the > > following to my proposed patch of RESTRICTED attributes: > > > > * f_code > > * f_builtins > > * f_globals > > * f_locals > > > > That seems to do the trick... > > A goal is to use this in App Engine, yes? Which uses cgitb to report > errors? Which needs these restricted frame attributes to report the > values of variables when the error occurred? We should be able to restore the original environment. Example: ... jail(evil_func) # called in the jail # unsafe environment with __subclasses__, f_code, etc. ... -- Victor Stinner aka haypo http://www.haypocalc.com/blog/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4