How to safely maintain a status file

Chris Gonnerman chris at
Fri Jul 13 22:15:13 CEST 2012

On 07/13/2012 12:59 PM, Prasad, Ramit wrote:
> I lean slightly towards the POSIX handling with the addition that any 
> additional write should throw an error. You are now saving to a file 
> that will not exist the moment you close it and that is probably not 
> expected. Ramit
But if I created, then deleted it while holding an open file descriptor, 
it is entirely likely that I intend to write to it. I'll admit, these 
days there are those in the Unix/Linux community that consider using an 
anonymous file a bad idea; I'm just not one of them.

-- Chris.

More information about the Python-list mailing list