[Python-Dev] Re: Proto-PEP regarding writing bytecode files

Guido van Rossum guido@python.org
Thu, 23 Jan 2003 12:21:34 -0500


> I'm unclear about how this works if I have one environment variable but am
> running different installations of Python. Couldn't I end up with a pyc
> newer than any of its diverse sources and thus used even though it
> corresponds to just one of them?

No, a pyc file records the mtime of the corresponding py file in its
header, and is only used if that is *exactly* the same.  Newer/older
doesn't matter.

--Guido van Rossum (home page: http://www.python.org/~guido/)