How to start python interactively from python script?

Thomas Heller theller at python.net
Tue Apr 26 10:42:59 EDT 2005


"draghuram at gmail.com" <draghuram at gmail.com> writes:

> Hi,
>
> I would like to have a python script which does some computations at
> the beginning and then changes to interactive mode (by displaying the
> prompt). How can I do this?


You call 'os.setenv["PYTHONINSPECT"] = "1"' at the somewher in your
script.

Thomas



More information about the Python-list mailing list