Keeping the console window

castironpi at gmail.com castironpi at gmail.com
Sun Mar 2 11:02:50 EST 2008


On Mar 2, 9:55 am, Sam <samuel.pro... at gmail.com> wrote:
> You may use python in interactive mode:
>
> $ python -i yourScript.py
>
> Or use a blocking readline:
>
> $ cat yourScript.py
> import sys
> sys.stdin.readline()
>
> ++
>
> Sam

FWIW, for what it's worth, you can invoke the interpreter from a batch
file/shell script too, and just use the native PAUSE instruction to
prompt for 'any key to continue'.



More information about the Python-list mailing list