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 +0530, km <[EMAIL PROTECTED]> wrote:
> Hi all,
> 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.
> tia
> KM
> 
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to