[Python-Dev] zipimport, round 3 (or would that be that 37?)
Skip Montanaro
skip@pobox.com
Sun, 8 Dec 2002 17:53:24 -0600
Just> It prefers byte code over source, but ignores the time stamp. That
Just> *could* be confusing.
Not to mention a change of semantics. If the .py file is newer than the
.pyc or .pyo files, why not just force compilation but don't save the result
(maybe also toss a Warning)? Isn't that what importing from a read-only
directory or filesystem does today? Sure, it would slow things down, but it
would better match the semantics of importing from the filesystem.
Presumably testing before delivery of the zip archive would identify any
time order problems.
Skip