On Mar 16, 5:49 pm, nntpman68 <news1...@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 -- http://mail.python.org/mailman/listinfo/python-list