which gets blocked by the interpreter somehow with
exceptions.OSError - [Errno 11] Resource temporarily unavailable
I'm curious as to how you managed to do this - I've always been interested in how to sandbox something like this.
They compiled CPython with Emscripten, and it gets run on your browser.
File system access isn't blocked completely:
__import__("os").execv("/usr/bin/uname", ["uname", "-a"])
Linux ip-10-196-3-111 2.6.32-amazon-xen-r3 #1 SMP Mon Jan 16 21:03:16 PST 2012 i686 GNU/Linux
- Tejas from Team PythonMonk (I built the sandboxing stuff)
Gives you a few clues as well
pp = pprint.PrettyPrinter(depth=6)
f = inspect.currentframe()
c = 0
while f is not None:
c += 1
if c == 20:
f = f.f_back