need unique filename

Brandon Beck bbeck13 at excite.com
Tue May 7 12:00:14 EDT 2002


Try having a look at os.tmpfile() and os.tmpnam().  Both are
unfortunately only available under unix according to my documentation.
 If you need something that works on multiple platforms try looking at
the tempfile module.  It contains a method mktemp() that should do
what you want.



Marcus Schopen <marcus.schopen at uni-bielefeld.de> wrote in message news:<3CD73AE6.82C91293 at uni-bielefeld.de>...
> Hi,
> 
> is there a possibility to create unique filenames to avoid problems if
> two files are created at the same time. 
> 
> Thanks
> Marcus



More information about the Python-list mailing list