Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 43276:3bc3f12cae28 legacy-trunk
Fix a crasher where Python code managed to infinitely recurse in C code without
ever going back out to Python code in PyObject_Call(). Required introducing a
static RuntimeError instance so that normalizing an exception there is no
reliance on a recursive call that would put the exception system over the
recursion check itself.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Fri, 07 Sep 2007 04:18:30 +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; }
