On Tue, 29 Apr 2008 17:15:11 +1200, Greg Ewing wrote: > [EMAIL PROTECTED] 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. http://www.develer.com _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com