[Python-Dev] Challenge: Please break this! (was: Reviving restricted mode)

Guido van Rossum guido at python.org
Tue Feb 24 01:19:37 CET 2009


On Mon, Feb 23, 2009 at 4:06 PM, Victor Stinner
<victor.stinner at haypocalc.com> wrote:
> Le Tuesday 24 February 2009 00:51:25 Farshid Lashkari, vous avez écrit :
>> It seems like some code in safelite passes a file object to
>> isinstance. By overriding the builtin isinstance function I can get
>> access to the original file object and create a new one.
>
> Wow, excellent idea!

I think in the next version Tav will have to stop the sharing of
__builtins__ between the supervisor and the sandboxed code. There are
too many tricks you can play with this.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-Dev mailing list