Issue #13645: pyc files now contain the size of the corresponding source

code, to avoid timestamp collisions (especially on filesystems with a low
timestamp resolution) when checking for freshness of the bytecode.
This commit is contained in:
Antoine Pitrou 2012-01-13 18:52:16 +01:00
parent 1f918c1480
commit 5136ac0ca2
14 changed files with 167 additions and 49 deletions

View file

@ -21,7 +21,7 @@ def read_code(stream):
if magic != imp.get_magic():
return None
stream.read(4) # Skip timestamp
stream.read(8) # Skip timestamp and size
return marshal.load(stream)