2012/8/1 Laszlo Nagy <[email protected]>:
>
>> Thanks a lot, that makes a lot of sense.. I haven't given this detail
>> before because I didn't write this code, and I forgot that there were
>> threads involved completely, I'm just trying to help to fix this bug.
>>
>> Your explanation makes a lot of sense, but it's still surprising that
>> even just reading files without ever writing them can cause troubles
>> using threads :/
>
> Make sure that file objects are not shared between threads. If that is
> possible. It will probably solve the problem (if that is related to
> threads).
Well I just have to create a lock I guess right?
with lock:
# open file
# read content
--
http://mail.python.org/mailman/listinfo/python-list