FAQ
Hi ,

I wish to execute some user submitted python code and have absolutely
no other way out . I saw that there used to be a module called rexec
which could define which modules can be imported and which cannot
however exec doesn't have that kind of feature . Please if you could
tell me what would the best possible ways of sandboxing python code .
--
A-M-I-T S|S

Search Discussions

  • Shashwat Anand at Jun 3, 2010 at 3:42 pm
    I have not much idea but Online Judges like SPOJ/codechef have regular
    programming-contests and python is one of allowed languages. So yes, it's
    possible. If I guess right, are you making an Online Judge for python.
    On Thu, Jun 3, 2010 at 8:39 PM, Amit Sethi wrote:

    Hi ,

    I wish to execute some user submitted python code and have absolutely
    no other way out . I saw that there used to be a module called rexec
    which could define which modules can be imported and which cannot
    however exec doesn't have that kind of feature . Please if you could
    tell me what would the best possible ways of sandboxing python code .
    --
    A-M-I-T S|S
    --
    http://mail.python.org/mailman/listinfo/python-list
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: <http://mail.python.org/pipermail/python-list/attachments/20100603/f48374a2/attachment.html>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedJun 3, '10 at 3:09p
activeJun 3, '10 at 3:42p
posts2
users2
websitepython.org

2 users in discussion

Shashwat Anand: 1 post Amit Sethi: 1 post

People

Translate

site design / logo © 2022 Grokbase