]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix SF #561858 Assertion with very long lists
authorNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Jun 2002 18:27:34 +0000 (18:27 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sat, 1 Jun 2002 18:27:34 +0000 (18:27 +0000)
commit63ab3e2bca1841bb728a558f8bc53218c5635379
tree55b53bf15c9b3440ad613fcec7f44b17283b879f
parentc883ad633c45540a82788d3e69d1aeca5e18ebe1
Fix SF #561858 Assertion with very long lists

if co_stacksize was > 32767 (the maximum value
which can be stored in 16 bits (signed)),
the PyCodeObject would be written wrong.
So on the second import (reading the .pyc)
would cause a crash.

Since we can't change the PYC magic, we
go on (silently), but don't write the file.
This means everything will work, but
a .pyc will not be written and the file will need
to be parsed on each import.
Python/import.c