[Python-ideas] A limited exec

Laurens Van Houtven _ at lvh.io
Fri Jul 19 09:25:38 CEST 2013


Hi Alan,


I've pretty much broken it, just translating it to 3.x.

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...

Anyway, this approach doesn't work well: if you want secure execution,
please look at PyPy's sandbox mode :)

cheers
lvh


On Fri, Jul 19, 2013 at 8:19 AM, Hua Lu <gotoalanlu at gmail.com> wrote:

> Hi, I've attempted to make exec/eval a bit safer. May I please have some
> feedback?
>
> https://github.com/cag/execgate
>
> Thanks,
> Alan
>
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> http://mail.python.org/mailman/listinfo/python-ideas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20130719/74a466f6/attachment.html>


More information about the Python-ideas mailing list