[New-bugs-announce] [issue23734] zipimport should not check pyc timestamps against zipped py files

Gregory P. Smith report at bugs.python.org
Sat Mar 21 19:59:07 CET 2015


New submission from Gregory P. Smith:

The zipimport module checks the timestamp of a pyc file loaded from the zip file against the timestamp of a corresponding py file in the zip if any.  This seems pointless.  By the time someone has created a zip file for zipimport they should have guaranteed that the pyc's are fresh or not have put them into the zip file at all (wasteful).

https://hg.python.org/cpython/file/e8878579eb68/Modules/zipimport.c#l1187

There is a comment in the code alluding to this, but the mtime check is still done right above.

----------
components: Extension Modules
messages: 238824
nosy: gregory.p.smith
priority: low
severity: normal
status: open
title: zipimport should not check pyc timestamps against zipped py files
type: enhancement
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23734>
_______________________________________


More information about the New-bugs-announce mailing list