[Python-Dev] Warn about mktemp once again?

Giovanni Bajo rasky at develer.com
Tue Apr 29 07:43:34 CEST 2008

On Tue, 29 Apr 2008 17:15:11 +1200, Greg Ewing wrote:

> 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.

Same here. In fact, is there a good reason to have mkstemp() return the 
fd (except backward compatibility)?
Giovanni Bajo
Develer S.r.l.

More information about the Python-Dev mailing list