Title: Rewrite zipimport from scratch
Type: Stage:
Components: Interpreter Core Versions: Python 3.6
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, byrnes, diana, eric.snow, gregory.p.smith, haypo, serhiy.storchaka, superluser, twouters
Priority: high Keywords:

Created on 2015-11-23 16:28 by brett.cannon, last changed 2016-01-06 14:41 by superluser.

Messages (9)
msg255183 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-11-23 16:28
No one wants to work on zipimport, and yet it's full of bugs. It needs a rewrite so that it's more maintainable. An idea floated at PyCon 2015 was to writing the zip-reading code in C and to keep it as simple as possible -- e.g., don't worry about supporting comments, etc. -- and then write the rest of the code in importlib, making maintenance much easier.

All of the various zipimport bugs should be made dependent on this issue as unless they are critical flaws I doubt they will get fixed without the rewrite.
msg255198 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-11-23 17:15
FYI I'm at the early stage of rewriting zipimport in Python.
msg255202 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2015-11-23 17:23
Are you writing it in such a way that it can be bootstspped in with importlib so the stslib can be loaded from it?
msg255224 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-11-23 20:41
It was my intention.
msg256161 - (view) Author: Rose Ames (superluser) * Date: 2015-12-09 21:12
Serhiy, how far along are you on this?  I have a wip from this summer that I could finish over the holidays.
msg256171 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-12-10 08:40
I were on very early stage, and stopped this work few weeks ago in favor of other issues. I would be glad to make a review of your work when you have finished it Rose.
msg256207 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2015-12-11 08:25
Can you both publish your WIP work?
msg257360 - (view) Author: Brett Cannon (brett.cannon) * (Python committer) Date: 2016-01-02 20:29
What are people's statuses on their various attempts? Since this is going to block my importlib.resources work I will do the work myself or work directly with someone in order to make sure this gets done.
msg257609 - (view) Author: Rose Ames (superluser) * Date: 2016-01-06 14:41
Sorry for the late response.  I didn't have much time over the holidays.  I think I better let someone else take this one.
Date User Action Args
2016-01-06 14:41:28superlusersetmessages: + msg257609
2016-01-05 05:48:21dianasetnosy: + diana
2016-01-02 20:29:36brett.cannonsetmessages: + msg257360
2015-12-11 08:25:08hayposetnosy: + haypo
messages: + msg256207
2015-12-10 08:40:21serhiy.storchakasetmessages: + msg256171
2015-12-09 21:12:19superlusersetmessages: + msg256161
2015-11-23 20:41:02serhiy.storchakasetmessages: + msg255224
2015-11-23 20:40:42serhiy.storchakasetmessages: - msg255223
2015-11-23 20:40:34serhiy.storchakasetmessages: + msg255223
2015-11-23 20:40:09serhiy.storchakasetmessages: - msg255222
2015-11-23 20:39:50serhiy.storchakasetmessages: + msg255222
2015-11-23 20:33:14eric.snowsetnosy: + eric.snow, superluser
2015-11-23 17:23:42brett.cannonsetmessages: + msg255202
2015-11-23 17:15:22serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg255198
2015-11-23 16:36:10byrnessetnosy: + byrnes
2015-11-23 16:29:06brett.cannonlinkissue25710 dependencies
2015-11-23 16:28:40brett.cannoncreate