[issue42369] Reading ZipFile not thread-safe
Kevin Mehall
report at bugs.python.org
Wed Jun 30 15:13:56 EDT 2021
Kevin Mehall <km at kevinmehall.net> added the comment:
I think I found the root cause of this problem and proposed a fix in https://github.com/python/cpython/pull/26974
To monkey-patch this fix on existing versions of Python, I'm using:
class PatchedSharedFile(zipfile._SharedFile):
def __init__(self, *args):
super().__init__(*args)
self.tell = lambda: self._pos
zipfile._SharedFile = PatchedSharedFile
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42369>
_______________________________________
More information about the Python-bugs-list
mailing list