[New-bugs-announce] [issue23252] Add support of writing to unseekable file in zipfile

Serhiy Storchaka report at bugs.python.org
Fri Jan 16 20:55:48 CET 2015

New submission from Serhiy Storchaka:

ZIP files can be created to transfer it via unseekable streams (pipes, sockets). Mercurial uses a workaround to write ZIP files right to wsgirequest, but this is possible only with writestr(). write() needs seek() to updated file size, compressed sized and CRC. However ZIP file format supports streamed data without writing sizes and CRC before file data. It is possible and desirable to add full support of unseekable output files in zipfile.

assignee: serhiy.storchaka
components: Library (Lib)
messages: 234145
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Add support of writing to unseekable file in zipfile
type: enhancement
versions: Python 3.5

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list