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

J

Jonathan Mark

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?
 
R

Roy Smith

"Jonathan Mark said:
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.
 
S

skip

Jonathan> Some languages, such as Scheme, permit you to make a
Jonathan> transcript of an interactive console session. Is there a way
Jonathan> to 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top