This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rfk
Recipients dsamersoff, georg.brandl, rfk, terry.reedy
Date 2010-07-11.14:24:01
SpamBayes Score 0.016804324
Marked as misclassified No
Message-id <1278858251.64.0.536858112608.issue5950@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is my attempt at a patch for this functionality, along with some simple tests.  This basically mirrors what's done in zipfile.py, searching backwards through the file until it finds the end-of-central-directory marker.  It tries to be memory conscious by reading in small chunks.

Patch is against trunk; I've also tested it against 2.7 and it seems to work.  Any chance of it being backported into 2.7?

Also wanted to mention a real-world usecase for this functionality. I want to digitally sign a frozen python program with appended zipfile, which involves appending the signature to the EXE.  Simple to do if only zipimport would support appended comments.
History
Date User Action Args
2010-07-11 14:24:11rfksetrecipients: + rfk, georg.brandl, terry.reedy, dsamersoff
2010-07-11 14:24:11rfksetmessageid: <1278858251.64.0.536858112608.issue5950@psf.upfronthosting.co.za>
2010-07-11 14:24:04rfklinkissue5950 messages
2010-07-11 14:24:03rfkcreate