installing 2.4
Peter Hansen
peter at engcorp.com
Fri Dec 3 06:44:44 EST 2004
Matt Gerrans wrote:
> "Peter Hansen" <peter at engcorp.com> wrote:
>
>>Only pure Python code can run without change on a newer interpreter.
>
> Is the interpreter smart enough to rebuild a pyc (if the corresponding py
> file is there of course) file that was built by a previous version?
Yes. The .pyc files contain a magic cookie that is
different in each major version, so 2.4 will recompile
your 2.3 .pyc files. .pyc files are not portable
between versions, generally, excepting maintenance releases.
-Peter
More information about the Python-list
mailing list