Im still a bit at a loss as to where the blocking problem is...
if I was to sandbox cpython for a pygame heres what Id try.
- replace builtins like import, compile, exec, reload through the C
api (as with the blender3d example I posted earlier, scripters will
need to write scripts accounting for this perhaps in one py file to
start with.
- try to replace pythons memory allocator with one that can be
limited.. OR, patch python to limit the memory it can use. (web plugin
could statically link the patched python) OR use process some OS
control to limit memory management.
What else would you need to do to sandbox python for a web plugin?