Python 3.3’s zipfile module understands .zip archives that have been compressed with bzip2 or xz instead of the traditional deflate algorithm. Does this extended compression support extend to the zipimport functionality?
Python 3.3’s zipfile module understands .zip archives that have been compressed with bzip2 or
Share
No, the
zipimport.csource is implemented independently from the stdlibzipfilemodule and only supports ZLIB compressed data or uncompressed archives.Specifically, the heavy lifting is done in the
get_datafunction which has/* data is not compressed */and/* Decompress with zlib */branches.