exit to interpreter?

jay graves jaywgraves at gmail.com
Tue Mar 27 12:12:32 EDT 2007


On Mar 23, 12:52 pm, belinda thom <b... at cs.hmc.edu> wrote:
> be processed up the call stack. My problem is this. I'd also like it
> to handle a special string (e.g. 'quit'), in which case control
> should return to the Python command line as opposed to returning the
> string up the call stack.

Maybe you are looking for the 'code' module.

http://docs.python.org/lib/module-code.html

...
Jay Graves




More information about the Python-list mailing list