[Python-ideas] hook zipfile.ZipExtFile to check secure hash sums

Guido van Rossum guido at python.org
Wed Aug 29 19:10:33 CEST 2012

On Wed, Aug 29, 2012 at 9:08 AM, Daniel Holth <dholth at gmail.com> wrote:
> I am checking the sha256 sums of all the files in a zip archive as it
> is being extracted by overriding ZipExtFile._update_crc, but it is
> inconvenient.
> It would be nice to have a hook, for example the ZipExtFile
> constructor could be a property of ZipFile and conveniently replaced
> with a ZipExtFile subclass.

Sounds to me like you should just whip up a patch and submit it to the
issue tracker.

--Guido van Rossum (python.org/~guido)

More information about the Python-ideas mailing list