On Monday 26 April 2004 15:16, Angus Leeming wrote:
>
> What happens for users of Python < 2.0? They continue to use mktemp?

  I am afraid so.

  For almost a day I have been trying to find an alternative for those 
users. Finally I got the one attached.

  So I will use our TempFile for python < 2.0 and tempfile.TemporaryFile 
for the more recent.

  The nice thing about this code compared with mkstemp is that it takes 
care of the file clean up. Also you don't need to deal with its 
filename.

  What do you think? Unless you have any objections I will incorporate 
this code into the script and clean it accordingly.

-- 
José Abílio

LyX and docbook, a perfect match. :-)














Attachment: tmpfile.py
Description: application/python

Reply via email to