On 2014-03-12 13:29, zoom wrote: > 2. Alternatively, a unique string could be generated to assure that > no same file exists. I can see one approach to this is to include > date and time in the file name. But this seems to me a bit clumsy, > and is not unique, i.e. it could happen (at least in theory) that > two processes finish in the same second.
Python offers a "tempfile" module that gives this (and a whole lot more) to you out of the box. -tkc -- https://mail.python.org/mailman/listinfo/python-list