Re: Avoiding excessive writes

2009-03-18 Thread John Machin
On Mar 19, 1:20 pm, "Gabriel Genellina" wrote: > En Thu, 19 Mar 2009 00:52:54 -0200, escribió: > > > I'm aware that C, and thus Python I suppose, will cache file writes > > for efficiency and to avoid excessive disk activity, > > Python 2.X, yes, because it uses C file streams (FILE) to implement

Re: Avoiding excessive writes

2009-03-18 Thread Gabriel Genellina
En Thu, 19 Mar 2009 00:52:54 -0200, escribió: I'm aware that C, and thus Python I suppose, will cache file writes for efficiency and to avoid excessive disk activity, Python 2.X, yes, because it uses C file streams (FILE) to implement Python file objects. Python 3.x avoids that layer. Do

Avoiding excessive writes

2009-03-18 Thread prometheus235
I'm aware that C, and thus Python I suppose, will cache file writes for efficiency and to avoid excessive disk activity, causing occasional problems when forgetting to flush. How exactly this works is still somewhat of a mystery to me, but a concern because of a program I'm developing: The progra