Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 28647:9d4e138494fb legacy-trunk
Py_Finalize(): Reverted recent changes that tried to move the
PYTHONDUMPREFS output after most teardown. Attempts to use
PYTHONDUMPREFS with the Zope3 test suite died with Py_FatalError(),
since _Py_PrintReferences() can end up executing arbitrary Python code
(for objects that override __repr__), and that requires an intact
interpreter.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Thu, 17 Apr 2003 15:21:01 +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; }
