Martin Panter added the comment:

When you say concurrent writes should be impossible, I guess that only applies 
to a single-threaded program. There is no lock protecting the “self._fileRefCnt 
> 1” check and related manipulation (not that I am saying there should be).

For serializing concurrent writes to a single handle, if that is intended it 
should be documented. If it is not intended, maybe it should be removed (my 
preference)?

It would be good to wait if Serhiy can explain the purpose of the lock, seeing 
he was involved in adding it and probably knows a lot more about this module 
than I.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26039>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to