Problem with redirection, buffering and chaining scripts.

Andre van Straaten andre at UltraShell.Net
Fri Jun 30 04:34:07 EDT 2000


As you read from a file to print out and I haven't seen a 
.close() statement, it was a suggestion that not closing the file is
retaining or delaying the data read together with the associated
print.
I have no further clue if this didn't help. Sorry.

-- avs


Thaddeus L. Olczyk <olczyk at interaccess.com> wrote:
> On Thu, 29 Jun 2000 10:17:48 GMT, Andre van Straaten
> <andre at UltraShell.Net> wrote:

>>I never called a Python script from another Python script, but probably
>>it might be helpful to flush the buffer with file.close().
>>This is even necessary if you read and write to the same file within the
>>same script.
>>The buffers are flushed always when the script terminates, but .close()
>>is sometimes necessary explicitely.
>>
>>-avs
> And since the buffers already get flushed when the script closes, how
> does this help?

-- 

Andre van Straaten
http://www.vanstraatensoft.com
______________________________________________
flames please to /dev/null at vanstraatensoft.com




More information about the Python-list mailing list