Re: temp file name

2004-12-21 Thread Artur M. Piwko
In the darkest hour on Fri, 17 Dec 2004 17:21:53 +0530, km <[EMAIL PROTECTED]> screamed: > Is there a way to create a unique file name; safely > i have used os.tmpnam() with python2.4, i warns that the usage is a potential > security risk. > Security risk comes from posix tmpnam itself. >From t

Re: temp file name

2004-12-16 Thread Binu K S
Use the tempfile module instead. It is more secure. Check the documentation for tempfile.NamedTemporaryFile. If you are only looking to get a unique name and want to do the file management yourself, you may have to close the file opened by this function and reopen it. On Fri, 17 Dec 2004 17:21:53