On Mon, Mar 17, 2003 at 12:07:44PM -0500, Greg Ward wrote: > But open() doesn't work that way. open(filename, "wb") unconditionally > clobbers filename. That's one way to resolve the race condition, I > suppose, but not really satisfactory. os.open with the O_EXCL flag does. Windows probably does things differently though so using tempfile is probably best. Neil