>>Also note that this method of creating tempfiles is technically unsafe,
>>as it is theoretically possible that another process would create a file
>>of the same name in the same directory and then try to use it, resulting
>>in a race condition between the two processes. This is practically
>>unlikely, however, and I'm a pragmatist.

I see what you mean, but wouldn't a call to open(fn, 'w') on a filename 
that's in use (for reading or writing) result in an error condition or 
something? I'm a noob, btw.


Thanks for the info, guys, much appreciated. I'll try it soon (on XP) - I'm 
a pragmatist, too, you see.. 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to