temp file name

Binu K S binux.lists at gmail.com
Thu Dec 16 09:36:50 CET 2004


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 <km at mrna.tn.nic.in> 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
>



More information about the Python-list mailing list