[issue40175] Add support for removing zip entry in ZipInfo

Serhiy Storchaka report at bugs.python.org
Sat Apr 4 06:14:35 EDT 2020


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

There were other issues and discussions about this.

The problem of removing a file from a ZIP archive is similar to the problem of removing a line from a file. It cannot be made efficiently, and it is not even always possible. In some cases it may be better (simpler, more efficient and robust) to copy a file line by line into a new file, skipping particular lines, and the same is true for a ZIP archive. In other cases you can truncate the file or the ZIP archive. Solution that is optimal in one case may be inappropriate in other case.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue40175>
_______________________________________


More information about the Python-bugs-list mailing list