This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author akineko
Recipients akineko, loewis
Date 2007-08-31.22:55:25
SpamBayes Score 0.12246622
Marked as misclassified No
Message-id <1188600925.82.0.510400834394.issue1073@psf.upfronthosting.co.za>
In-reply-to
Content
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-
History
Date User Action Args
2007-08-31 22:55:26akinekosetspambayes_score: 0.122466 -> 0.12246622
recipients: + akineko, loewis
2007-08-31 22:55:25akinekosetspambayes_score: 0.122466 -> 0.122466
messageid: <1188600925.82.0.510400834394.issue1073@psf.upfronthosting.co.za>
2007-08-31 22:55:25akinekolinkissue1073 messages
2007-08-31 22:55:25akinekocreate