[Tutor] reading comments

Terry Carroll carroll at tjc.com
Sat May 28 19:48:43 CEST 2005


On Sat, 28 May 2005, Servando Garcia wrote:

> 		How do I read the comments attached to a zipfile or for
> any file .?

Someone's on riddle 6!  :-)

    z = zipfile.ZipFile(zipfilename, mode='r')
    zi = z.getinfo(zfilename)
    print zi.comment




More information about the Tutor mailing list