saving interpreter source?

Garett asdf at asdf.asdf
Wed Apr 21 12:36:48 EDT 2004


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



More information about the Python-list mailing list