Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: temp file name

0 views
Skip to first unread message

Binu K S

unread,
Dec 16, 2004, 3:36:50 AM12/16/04
to k...@mrna.tn.nic.in, pytho...@python.org
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 <k...@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
>

0 new messages