python interpreter

Diez B. Roggisch deets at nospam.web.de
Tue Aug 12 11:11:31 EDT 2008


Alexandru  Mosoi wrote:

> I'm using python's interpreter's to run various commands (like a
> normal shell). However if sources are modified changes are not
> reflected so I have to restart interpreter. Is there any way to avoid
> restarting this?

Other gave you advice on how to - partially - achieve this.

Let me add that IMHO the better approach is to  create a small test-script
and let that run. If you want/must have a interactive prompt, 

python -i test.py

as well as 

import pdb; pdb.set_trace() 

at an interesting point in your script are your friends.

Diez



More information about the Python-list mailing list