billiejoex <[EMAIL PROTECTED]> wrote:
>  I'm trying to generate a brand new file with a unique name by using
>  tempfile.mkstemp().
> 
>  Moreover, I'd like to know if I'm doing fine. Does this approach avoid
>  race conditions

This is a reasonably secure way of doing things.  It can't race under
unix at least (dunno about windows) unless your dir is on NFS.

If you want more security then make sure dir isn't publically
writeable.

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to