[issue3115] os.listdir randomly fails on occasions when it shouldn't

2008-06-16 Thread philipspencer
philipspencer <[EMAIL PROTECTED]> added the comment: Yes, it is the same issue. Sorry I didn't see the previous report -- I didn't imagine an issue like this, with such a simple fix, could have been reported back in 2006 without the fix ever having been implemented, so I didn&#x

[issue3115] os.listdir randomly fails on occasions when it shouldn't

2008-06-15 Thread philipspencer
philipspencer <[EMAIL PROTECTED]> added the comment: I submitted the patch using the File: pathname box in the issue tracker editing window. I am doing this from home using an older version of mozilla; perhaps the tracker software doesn't work well with that version? I will try on

[issue3115] os.listdir randomly fails on occasions when it shouldn't

2008-06-14 Thread philipspencer
New submission from philipspencer <[EMAIL PROTECTED]>: Python's os.listdir function has the following code in Modules/posixmodule.c: errno = 0 ... for (;;) { Py_BEGIN_ALLOW_THREADS ep = readdir(dirp); Py_END_ALLOW_THREADS if