Mercurial > cpython-lru_cache-weakref
comparison Python/sysmodule.c @ 23623:c00febbe0929 2.2
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.
I will backport.
| author | Neal Norwitz <nnorwitz@gmail.com> |
|---|---|
| date | Sat, 01 Jun 2002 18:26:22 +0000 |
| parents | ef314b37e260 |
| children | 652f1b318e5a 3f4b2f93e8b5 |
comparison
equal
deleted
inserted
replaced
| 23604:ef8d456067fd | 23623:c00febbe0929 |
|---|
