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
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
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
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