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 filitov
Recipients
Date 2004-04-02.16:35:37
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=642545

So, upon some more investigation, it looks like the problem
is that the toc_entry from the old zip file is being used,
which has the old file size, not the new file size.

It looks like in zipimport.c, line 126, where the
zip_directory_cache is used to cache all of the toc_entry's
for a zip file, a check on the zip file modification should
be made, just as the modification check is done vs. .py
files, I would imagine.

This would require storing another a tuple in
zip_directory_cache of (modification_time, list of toc_entry's).

Let me know if you want me to take a shot at implementing
this. Otherwise I'd prefer deferring to you guys, as I
assume you can do it with much less time and much higher
quality than I could.

Thanks.
History
Date User Action Args
2007-08-23 14:18:46adminlinkissue856103 messages
2007-08-23 14:18:46admincreate