[issue14099] ZipFile.open() should not reopen the underlying file

Matt Mackall report at bugs.python.org
Tue Jan 6 23:27:32 CET 2015


Matt Mackall added the comment:

The committed fix breaks Mercurial.

http://bz.selenic.com/show_bug.cgi?id=4492

The "underlying file-like object" in our case is a wsgirequest but anything else trying to serve a dynamically-generated zip file on the web will probably die. We wrapped wsgirequest to support tell() many years ago probably copying someone else's hack, and it's worked fine across Python 2.4-2.7, but we fundamentally can't support all the new seek()s that were added here.

----------
nosy: +Matt.Mackall

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14099>
_______________________________________


More information about the Python-bugs-list mailing list