[Fred Drake] > The first four bytes represent a magic number, and the > second four bytes represent the date on which the bytecode > was compiled (or was it the timestamp of the source file?). The source file: a .py[co] is out of date if the source file changed since the .py[co] was created, so the source file's original time is the interesting thing. You might think <wink> we could compare mtime(.py[co]) to mtime(.py), but apart from pathologies that would require two stat() calls; only one is needed the way it's done. > It's gotta be in the docs somewhere, else I'd have to just > remember all that! ;-) Seriously, if you don't see it in > the docs, file a bug report and tell me where you looked & > why; it probably means there's something missing, if only a > link to wherever it actually is. See my response -- I'm not sure this *should* be documented. The "first 4 bytes form a magic number" can probably never be changed (and is documented now), but changing the rest has been debated repeatedly (albeit never acted on).
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4