saving interpreter source?
Gerrit
gerrit at nl.linux.org
Thu Apr 22 04:56:02 EDT 2004
Garett wrote:
> Hello, I would like to be able to save source typed into the interpreter
> to a file. Kind of like marshal, but I would like to have the file contain
> the source so I can edit it later. Something like inspect.getsource() but
> for source typed into the interpreter, not imported from a module. Is this
> possible? Any ideas are greatly appreciated. -Garett
Skip has once written something like that:
http://manatee.mojam.com/~skip/python/save_session.py
It won't work on Windows, however.
Gerrit.
--
Weather in Twenthe, Netherlands 22/04 10:25:
15.0°C Few clouds mostly cloudy wind 1.3 m/s SW (57 m above NAP)
--
Experiences with Asperger's Syndrome:
EN http://topjaklont.student.utwente.nl/english/
NL http://topjaklont.student.utwente.nl/
More information about the Python-list
mailing list