(no subject)
Jun. 5th, 2005 05:28 amThe Python Challenge is a pain in the butt. I’m completely stumped on #6, after completing the first five by hand, because with my limited knowledge (read: complete and utter lack) of Python it was easier that way.
and now there’s something about comments in a file that, so far as I can see, has no comments.
and hooray for not‑sleeping. fucking dryer....
and now there’s something about comments in a file that, so far as I can see, has no comments.
and hooray for not‑sleeping. fucking dryer....
no subject
Date: 2005-06-05 06:27 pm (UTC)You need to use thezipfilemodule. A ZipFile object has a getinfo method which tells you the comments assigned to a given file in the zip.