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 != 'exit': exec str print 'pydbg>>', str=sys.stdin.readline() etc. Somebody knows if something like this has been done before or an easy way to go about this? Regards, Thomas
-- http://mail.python.org/mailman/listinfo/python-list