On 06/03/2015 08:56 AM, Antoine Pitrou wrote: > Le 03/06/2015 14:34, Rose Ames a écrit : >> >> >> On 06/03/2015 04:59 AM, Antoine Pitrou 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 is already required for compressed zips: >> >> https://github.com/python/cpython/blob/master/Modules/zipimport.c#L1030 > > Ah, the C code already importing the zlib module? Then I guess it's fine :-) > >> Do some companies >> zip the standard library or something? > > I don't know. If they do so, they probably exclude the zlib module in > some way. > > Regards > > Antoine. Sounds like I can just add a zipimporter to Lib/importlib/_bootstrap.py and remove zipimport.c entirely, is that right?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4