python sub interpreter

2007-02-07 Thread Thomas Pollet
Hello, I want to have a python interpreter shell spawn from a python class member function. atm I use exec but I want something more flexible (i.e. syntax checking while typing) E.g.: class blah: def start_shell(self): import sys dbg=self str="" while str != 'exi

Re: Python "sub-interpreter," security

2006-06-25 Thread jvvhie
faulkner wrote: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496746 > Thanks! I was searching everywhere but couldn't find the right terms, I guess. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "sub-interpreter," security

2006-06-25 Thread faulkner
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496746 [EMAIL PROTECTED] wrote: > Hello, I am writing a pure-Python game engine that interprets the code > of game objects within the same process with the exec statement. My > main goal is to make as much power available as possible and exec

Python "sub-interpreter," security

2006-06-25 Thread jvvhie
Hello, I am writing a pure-Python game engine that interprets the code of game objects within the same process with the exec statement. My main goal is to make as much power available as possible and exec seems like the best way to do that. This is my "proof-of-concept" code(only 18 lines and some