Brett Cannon added the comment: I haven't thought about how to implement it, let alone document it. As I said, I might simply refactor importlib so that others can at least implement a loader which can do this without having to directly muck with importlib itself. It really depends on how far one would want to go with this.
Otherwise I would add a note in importlib in the appropriate loader(s) that if such-and-such a datetime is specified in the bytecode header then all stat-related staleness checks against the original source is disabled and the only validation is the magic number (since it's cheap and a nice safety check). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23723> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com