interactive editing

Michael Chermside mcherm at mcherm.com
Fri Jul 23 18:57:50 CEST 2004


max writes:
> i would like to save, list and modify objects definitions in the python
> shell

I don't know of any way to do this. But if you turn your thinking
"inside out" you may achieve what you need. Instead of trying to
save, load, and edit things from within your Python interactive
session, how about if you put a Python interactive session within
your editor? Even something like IDLE is reasonably capable at
this -- hit a single key to reload all of the code in your module
and re-run it, then drop into the prompt and explore.

And yes, I realize that this doesn't quite give you the same
ability as a "save" within the interactive session would.

-- Michael Chermside




More information about the Python-list mailing list