[Python-Dev] Rationale for NamedTemporaryFile?

Greg Ewing greg.ewing at canterbury.ac.nz
Tue Mar 20 23:02:06 CET 2007

Gregory P. Smith wrote:

> I prefer the default of "clean up after itself" as is to avoid leaving
> temporary file turds on systems caused by us lazy programmers.

Maybe instead of an option there should be a separate
function with a different name, such as NewUniqueFile.
For the use cases I have in mind, the file isn't really
"temporary" at all. Or rather, only the name is temporary,
as it ultimately gets renamed.


More information about the Python-Dev mailing list