switch to interactive mode

Mike Driscoll kyosohma at gmail.com
Mon Mar 16 19:36:13 EDT 2009


On Mar 16, 5:49 pm, nntpman68 <news1... at free.fr> wrote:
> Hi
>
> 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.

Mike



More information about the Python-list mailing list