[Python-ideas] Add a cryptographic hash (e.g SHA1) of source toPython Compiled objects?

Brett Cannon brett at python.org
Wed Feb 4 19:37:40 CET 2009

On Wed, Feb 4, 2009 at 02:18, Arnaud Delobelle <arnodel at googlemail.com> wrote:
> 2009/2/4  <rocky at gnu.org>:
>> There's also the mtime that needs to be ignored mentioned in prior
>> posts. And is there a table which converts a magic number version back
>> into a string with the Python version number? Thanks.
> You can look at Python/import.c, near the top of the file.

The other option to see how all of this works is importlib as found in
the py3k branch. That's in pure Python so it's easier to follow.


More information about the Python-ideas mailing list