switch to interactive mode
kyosohma at gmail.com
Tue Mar 17 00:36:13 CET 2009
On Mar 16, 5:49 pm, nntpman68 <news1... at free.fr> wrote:
> I know about two ways to enter python interactive mode
> 1.) just start python
> 2.) run python -i pythonscript.py
> What I am looking for is slightly different:
> I'd like, that a python script can be started by just calling it
> (clicking on it),
> but that the script can decide to enter interactive mode if certain
> conditions occur.
> Is this possible?
That sounds kind of like needing to embed the interpreter. I would
recommend looking into that. Wingware's Wing IDE has this feature
where you can run the program up a breakpoint and then use their
debugger to interact with the variables and objects and such.
More information about the Python-list