[Python-Dev] [Python-checkins] r84685 - in python/branches/py3k: Doc/library/dis.rst Doc/reference/simple_stmts.rst Doc/whatsnew/3.2.rst Include/opcode.h Lib/opcode.py Lib/test/test_exceptions.py Lib/test/test_scope.py Lib/test/test_syntax.py Misc/NEWS Python

Nick Coghlan ncoghlan at gmail.com
Sat Sep 11 02:28:11 CEST 2010


On Sat, Sep 11, 2010 at 7:39 AM, amaury.forgeotdarc
<python-checkins at python.org> wrote:
> There is no need to bump the PYC magic number: the new opcode is used
> for code that did not compile before.

If the magic number doesn't change for 3.2, how will 3.1 know it can't
run pyc and pyo files containing these opcodes?

The magic number needs a bump or this change may cause SystemErrors
when older versions attempt to run affected pyc files.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list