[Python-Dev] zipimport

Brett Cannon brett at python.org
Wed Jun 3 15:52:12 CEST 2015

On Wed, Jun 3, 2015 at 5:00 AM Antoine Pitrou <solipsis at pitrou.net> wrote:

> On Tue, 02 Jun 2015 21:20:10 +0000
> Brett Cannon <brett at python.org> wrote:
> >
> > I vaguely remember people suggesting writing the minimal zip reading code
> > in C but I can't remember why since we have I/O access in importlib
> through
> > _io and thus it's really just the pulling apart of the zip file to get at
> > the files to import and thus should be doable in pure Python.
> You would need other modules, such as struct and zlib, right?

zlib yes, but that's already a C extension so that could get compiled in as
a built-in module if necessary. As for struct, it might be nice but it
doesn't provide any functionality that couldn't be reproduced manually.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150603/ae5689e0/attachment.html>

More information about the Python-Dev mailing list