[Python-Dev] Rationale for NamedTemporaryFile? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 18 00:49:55 CET 2007
- Previous message: [Python-Dev] Bug in inspect module
- Next message: [Python-Dev] Rationale for NamedTemporaryFile?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I've just discovered the hard way that NamedTemporaryFile automatically deletes the file when you close it. That doesn't seem very useful to me, since surely the reason you're using NamedTemporaryFile instead of TemporaryFile is that you want to do something else with it afterwards? What's the rationale for this behaviour?
-- Greg
- Previous message: [Python-Dev] Bug in inspect module
- Next message: [Python-Dev] Rationale for NamedTemporaryFile?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]