Re: Python equivalent of script(1)

2005-01-01 Thread Mike Meyer
[EMAIL PROTECTED] writes: > In my case I wouldn't like to use it as a proof of anything, but I want > to get a script accessing a library system in my school -- it means > many attempts to play with urllib. I would prefer to do it in an > interactive session, but then I would love to have a record

Re: Python equivalent of script(1)

2005-01-01 Thread Grant Edwards
On 2005-01-01, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Is there anything like script(1) for python interactive sessions. $ script transcript.txt Script started, file is transcript.txt $ python ... Not sure if there's a way to shut off readline... -- Grant Edwards

Re: Python equivalent of script(1)

2005-01-01 Thread cepl
Thanks a lot. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python equivalent of script(1)

2005-01-01 Thread Thomas Rast
[EMAIL PROTECTED] writes: > I would love to have a record of all what I've done, so I can edit > this record into final script. You can save the current input history with >>> import readline >>> readline.write_history_file("python.log") If you want to log your whole session, including output,