Hello,
Quinn Dunkan
quinn at yak.ugcs.caltech.edu
Sun Jul 22 16:06:34 EDT 2001
On Sun, 22 Jul 2001 06:43:18 +0500, Tom Bryan <tbryan at python.net> wrote:
>Alex wrote:
>
>> Not really. There are some ways you could speed up the python code:
>
>I'm also not really sure why one would want to do this, but...
>
>> There's the additional problem that
>> opening "err" will truncate the log file, and if an error occurs while
>> you're writing the new version back, you could lose messages.
>
>here's a version that makes a copy of the file before prepending a
>new message to avoid that problem. It also uses seek to avoid having
I suggest appending the normal way, but viewing it with 'tac' :)
More information about the Python-list
mailing list