Message71362
I've pasted the output below... also, the trace function is called for
each function call after the settrace (not only in interpreter shutdown)
-- and the error happens in the listdir -- which is in the main thread,
so, it must happen before the interpreter shutdown.
Also, one thing: it works if you read an empty folder... And putting:
"print frame.f_code.co_filename, frame.f_lineno" in the 'func', it'll go
on and print
/usr/lib/python2.4/encodings/utf_8.py 15
/usr/lib/python2.4/encodings/utf_8.py 16
/usr/lib/python2.4/encodings/utf_8.py 16
For each file/dir available (so, it seems it's actually able to go on
and get all the contents, but before returning, that exception is thrown)
Output from running it:
-----------------------------------------
/usr/bin/python
Traceback (most recent call last):
File "/home/fabioz/test workspace with spaces/test
project/src/mod1/mod2/listdir_problem.py", line 23, in ?
print listdir(dir)
OSError: [Errno 11] Resource temporarily unavailable: '/home/fabioz/jython' |
|
Date |
User |
Action |
Args |
2008-08-18 18:55:21 | fabioz | set | recipients:
+ fabioz, amaury.forgeotdarc |
2008-08-18 18:55:21 | fabioz | set | messageid: <1219085721.51.0.871838610856.issue3494@psf.upfronthosting.co.za> |
2008-08-18 18:55:20 | fabioz | link | issue3494 messages |
2008-08-18 18:55:19 | fabioz | create | |
|