<div dir="ltr">Hey Laurens,<div><br></div><div>Thanks for the feedback. I am still waiting for NumPy in PyPy mostly. I know this blacklist approach is a losing battle, but for the time being, maybe it could be of value?</div>
<div><br></div><div>I am aware that f_globals could break things. However, barring 'private' attribute access, I am wondering if it is reachable. I used the code from <span style="color:rgb(0,0,0)"><a href="http://www.reddit.com/r/Python/comments/hftnp/ask_rpython_recovering_cleared_globals/c1v3l4i">http://www.reddit.com/r/Python/comments/hftnp/ask_rpython_recovering_cleared_globals/c1v3l4i</a> as a test.</span></div>
<div><font color="#000000"><br></font></div><div><font color="#000000">Can you give me a code snippet which breaks this?</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">Sincerely,</font></div>
<div><font color="#000000">Alan<br></font><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 19, 2013 at 2:25 AM, Laurens Van Houtven <span dir="ltr"><<a href="mailto:_@lvh.io" target="_blank">_@lvh.io</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Alan,<br><br><br>I've pretty much broken it, just translating it to 3.x.<br>
<br></div>Please document that it's 3.x only, that's why it's taking longer than a few minutes. func_globals is named differently, chr doesn't exist anymore...<br>

<br></div>Anyway, this approach doesn't work well: if you want secure execution, please look at PyPy's sandbox mode :)<br><div><br>cheers<br>lvh<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
<div><div class="h5">

On Fri, Jul 19, 2013 at 8:19 AM, Hua Lu <span dir="ltr"><<a href="mailto:gotoalanlu@gmail.com" target="_blank">gotoalanlu@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div class="h5">

<div dir="ltr">Hi, I've attempted to make exec/eval a bit safer. May I please have some feedback?<div><br></div><div><a href="https://github.com/cag/execgate" target="_blank">https://github.com/cag/execgate</a><br></div>


<div><br></div>
<div>Thanks,</div><div>Alan</div></div>
<br></div></div>_______________________________________________<br>
Python-ideas mailing list<br>
<a href="mailto:Python-ideas@python.org" target="_blank">Python-ideas@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-ideas" target="_blank">http://mail.python.org/mailman/listinfo/python-ideas</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div>