Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 33838:fdce3d39bec1 legacy-trunk
SF bug #1053819: Segfault in tuple_of_constants
Peepholer could be fooled into misidentifying a tuple_of_constants.
Added code to count consecutive occurrences of LOAD_CONST.
Use the count to weed out the misidentified cases.
Added a unittest.
| author | Raymond Hettinger <python@rcn.com> |
|---|---|
| date | Tue, 26 Oct 2004 08:59:14 +0000 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
