[Python-Dev] New Import Hook & New Zip Importer

Just van Rossum just@letterror.com
Thu, 5 Dec 2002 10:31:13 +0100


Fredrik Lundh wrote:

> have you tested the following code with uncompressed PY files?
> 
>     buf[data_size] = 'Z'; /* saw this in zipfile.py */
>     data_size++;

No, whoops! The "zipped-uncompressed.zip" file that comes with the other patch
is actually compressed... I'll test & fix.

> unmarshal_code should check that PyString_Size(data) is at least
> eight (or perhaps nine) bytes.

Ok, done.

Thank you!

Just