469,939 Members | 2,344 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,939 developers. It's quick & easy.

Is there any way to automatically create a transcript of an interactive Python session?

Some languages, such as Scheme, permit you to make a transcript of an
interactive console session. Is there a way to do that in Python?

Feb 19 '07 #1
3 1130
In article <11**********************@l53g2000cwa.googlegroups .com>,
"Jonathan Mark" <jo************@geocities.comwrote:
Some languages, such as Scheme, permit you to make a transcript of an
interactive console session. Is there a way to do that in Python?
I don't know of any way *inside* of python, but it's easy enough to run
your interactive python session inside of something like "script", an emacs
shell buffer, etc.
Feb 19 '07 #2
Jonathan Mark wrote:
Some languages, such as Scheme, permit you to make a transcript of an
interactive console session. Is there a way to do that in Python?
Maybe IPython's logging feature is what you want?
http://ipython.scipy.org/doc/manual/...00000000000000

Kent
Feb 19 '07 #3

JonathanSome languages, such as Scheme, permit you to make a
Jonathantranscript of an interactive console session. Is there a way
Jonathanto do that in Python?

If you decide not to use IPython for some reason, you should be able to
easily whip something up based on the command history features of the
readline module or one of the interpreter classes in the code module.

Skip

Feb 25 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.