File IO Issues, help :(

Peter Otten __peter__ at
Wed Apr 30 12:17:08 CEST 2008

Dennis Lee Bieber wrote:

> On Tue, 29 Apr 2008 08:35:46 +0200, Peter Otten <__peter__ at>
> declaimed the following in comp.lang.python:
>> jsfile.truncate(0)
> I'd suggest first doing the seek to start, then do the truncate

I usually overwrite the file, and that shows. Is there a usecase where
truncate() with an argument actually makes sense?


More information about the Python-list mailing list