stop program and start interactive interpreter

John J. Lee jjl at pobox.com
Sat Oct 11 16:03:01 EDT 2003


Dave Reed <drlinux at columbus.rr.com> writes:

> I seem to remeber reading somewhere there was a statement you could
> put in your python program to stop its execution and start the
> interactive interpreter at that point (and then you could change the
> value of some variables and continue executing). Am I having delusions
> or is there a way to do this?

I think you're right, but don't recall how you do it.

python -i spam.py

might be good enough for you, though


John




More information about the Python-list mailing list