Serhiy Storchaka <storchaka+cpyt...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue40175>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to