[Python] RE: How to safely maintain a status file

Christian Heimes lists at cheimes.de
Fri Jul 13 16:21:39 EDT 2012


Am 13.07.2012 21:57, schrieb MRAB:
> It's possible to create a temporary file even in Windows.

Windows has a open() flag named O_TEMPORARY for temporary files. With
O_TEMPORARY the file is removed from disk as soon as the file handle is
closed. On POSIX OS it's common practice to unlink temporary files
immediately after the open() call.




More information about the Python-list mailing list