[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
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
Thanks a lot.
--
http://mail.python.org/mailman/listinfo/python-list
[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,
Is there anything like script(1) for python interactive sessions. From
script(1) manpage:
Script makes a typescript of everything printed on your terminal.
It is useful for students who need a hardcopy record of an
interactive session as proof of an assignment, as the typescript
file can be printe