Re: [Python-Dev] Reviving restricted mode?

2014-08-13 Thread matsjoyce
es the sandboxed globals, and checks all arguments and globals for irregularities before passing control to non-sandboxed functions. On 13 August 2014 14:11, Isaac Morland wrote: > On Mon, 11 Aug 2014, Skip Montanaro wrote: > > On Mon, Aug 11, 2014 at 12:42 PM, matsjoyce wrote: >

Re: [Python-Dev] Reviving restricted mode?

2014-08-13 Thread matsjoyce
Unless you remove all the things labelled "keep away from children". I wrote this sandbox to allow python to be used as a "mods"/"add-ons" language for a game I'm writing, hence the perhaps too strict nature. About the crashers: as this is for games, its "fine" for the game to crash, as long as

Re: [Python-Dev] Reviving restricted mode?

2014-08-11 Thread matsjoyce
Yup, I read that post. However, those specific issues do not exist in my module, as there is a module whitelist, and a method whitelist. Builtins are now proxied, and all types going in to functions are checked for modification. There maybe some holes in my approach, but I can't find them.

Re: [Python-Dev] Reviving restricted mode?

2014-07-21 Thread matsjoyce
Sorry about being a bit late on this front (just 5 years...), but I've extended tav's jail to module level, and added the niceties. It's goal is similar to that of rexec, stopping IO, but not crashes. It is currently at https://github.com/matsjoyce/sandypython, and it has instruc