cannot zip file with zipfile

Skip Montanaro skip at pobox.com
Tue Aug 21 16:48:21 EDT 2001


    Scott> I cannot seem to create a valid zip file (one that WinZip can
    Scott> open).  Here is my code:

    Scott> a = ZipFile("c:\\test.zip","w",8)

Try "wb" for the mode instead of the "w".

-- 
Skip Montanaro (skip at pobox.com)
http://www.mojam.com/
http://www.musi-cal.com/




More information about the Python-list mailing list