Behavior of tempfile temp files when scripts killed, interpreter crashes, server crashes?

Malcolm Greene python at bdurham.com
Wed Jul 27 09:58:57 EDT 2016


Can someone share their OS specific experience in working with tempfile
generated temp files under these conditions?
 
1. Script killed by another process
2. Interpreter crashes
3. Server crashes (sudden loss of power)
4. Other application termination conditions ???
 
I'm curious which scenarios result in temp files not being automatically
deleted after use and what technique you're using to cleanup temp files
left over after these conditions (without affecting legitimate temp
files present from the current session)?
 
Do any OS's support a type of temp file that truly gets automatically
deleted in all of the above scenarios?
 
Thank you,
Malcolm



More information about the Python-list mailing list