Issue 67: Better temporary file handling by default
Project Member Reported by pts...@gmail.com, Aug 6, 2012
1. Create temporary files in /tmp (etc.), not in the current directory.

2. Remove temporary files by default upon success and failure.
Feb 27, 2013
#1 rbr...@gmail.com
There's perhaps one pythonic way (supported by all versions of Python since 2.3, AFAIK) to create such files:

* use tempfile.mkstemp (the created file needs manual removal).
* use tempfile.NamedTemporaryFile (is automatically removed when the file is closed).

Reference: http://docs.python.org/2/library/tempfile.html

Feb 27, 2013
Project Member #2 pts...@gmail.com
Thank you for filing this feature request.

I want to give the user more control over temporary files: i.e. remove them on success? remove them on failure? I think tempfile.mkstemp doesn't give these controls.

Blindly using tempfile.mkstemp would take away those controls and it would make debugging much harder. So not doing that quickly right now.