[Python-Dev] Warn about mktemp once again? (original) (raw)
Greg Ewing greg.ewing at canterbury.ac.nz
Tue Apr 29 07:15:11 CEST 2008
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
skip at pobox.com wrote:
Guido> Have we documented the alternatives well enough?
I suppose we could document explicitly how to use mkstemp() in place of mktemp(), but the difference in return value is fairly modest:
I'd like to see a variation of mkstemp() that returns a file object instead of a file descriptor, since that's what you really want most of the time. At least I always end up calling fdopen on it.
-- Greg
- Previous message: [Python-Dev] Warn about mktemp once again?
- Next message: [Python-Dev] Warn about mktemp once again?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]