Aki added the comment: I know it is hard to believe. I spent days to try out many things.
For example, I added the following: try: print os.path.isfile(fn) <<<--- fd = open(fn, 'rb') crypted = fd.read() fd.close() idx = crypted.index('\n') except (IOError, OSError, ValueError,): raise When I run, I got following cases randomly: (1) True, Open successfully (2) True, Open failed (3) False, Open failed (4) False, Open successfully The file is a binary data file and is already sitting in the directory before the execution of the program. I know that for other people it is very difficult to work on such case. But this is something to do with threading under windows. Aki- __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1073> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com