[Python-Dev] wait time [was: Ext4 data loss]

Leif Walsh leif.walsh at gmail.com
Thu Mar 12 23:35:22 CET 2009


On Thu, 2009-03-12 at 20:25 +0000, Antoine Pitrou wrote:
> I disagree. The user usually does not know which kind of flushing is needed in
> order for his data to be safe. Actually, he probably doesn't even know what
> flushing means, and that files are ever "closed".
> 
> However, I also think that any parameter to flush() or close() is a bad idea,
> since it can't be used when flushing and closing is implicit. For example when
> the file is used in a "with" statement.

Perhaps this is an argument that the "synciness" of a file should be
defined when it is opened?  This doesn't give very much control to the
programmer, but it certainly seems easy to use correctly.

-- 
Cheers,
Leif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://mail.python.org/pipermail/python-dev/attachments/20090312/8c6ffd64/attachment.pgp>


More information about the Python-Dev mailing list