This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients brett.cannon, brian.curtin, eric.snow, gregory.p.smith, nadeem.vawda, pitrou, rhettinger, serhiy.storchaka, superluser, yan12125
Date 2018-09-19.07:53:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1537343630.48.0.956365154283.issue17004@psf.upfronthosting.co.za>
In-reply-to
Content
zipimport has been rewritten in pure Python (issue25711). Now it is easier to add support of other compression methods. Although I don't think that reducing the size by 3-8% is worth complicating the code.

If you still need this, I think that the simplest way is importing the zipfile module and monkey patching the simple ZIP file implementation in the zipimport module with zipfile-based implementation. This can be made only after importing zipfile itself, i.e. in case of zipping the stdlib, the zipfile module and its dependencies should be stored uncompressed or with the deflate compression.
History
Date User Action Args
2018-09-19 07:53:50serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, rhettinger, gregory.p.smith, pitrou, nadeem.vawda, brian.curtin, eric.snow, superluser, yan12125
2018-09-19 07:53:50serhiy.storchakasetmessageid: <1537343630.48.0.956365154283.issue17004@psf.upfronthosting.co.za>
2018-09-19 07:53:50serhiy.storchakalinkissue17004 messages
2018-09-19 07:53:50serhiy.storchakacreate