write a 20GB file

J dreadpiratejeff at gmail.com
Fri May 14 18:38:55 EDT 2010


On Fri, May 14, 2010 at 15:23, Nobody <nobody at nowhere.com> wrote:
> On Fri, 14 May 2010 10:50:49 -0400, J wrote:
>
>> someone smarter than me can correct me, but file.write() will write when
>> it's buffer is filled, or close() or flush() are called.
>
> And, in all probability, seek() will either flush it immediately or cause
> the next write() to flush it before writing anything.

Ahhh... I didn't know that... I thought seek() just moved the pointer
through the file a little further....

Cool.



More information about the Python-list mailing list