Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 86702:1bbedfb20932
Issue #19421: fix a check in warnings.warn() to be able to use it during Python
finalization.
sys.argv is set to None during Python finalization: add PyList_Check() to avoid
a crash in PyList_Size().
| author | Victor Stinner <victor.stinner@gmail.com> |
|---|---|
| date | Mon, 28 Oct 2013 18:47:22 +0100 |
| parents | 6f6f965c5e2d |
| children |
line wrap: on
line source
#include "Python.h" #ifndef PLATFORM #define PLATFORM "unknown" #endif const char * Py_GetPlatform(void) { return PLATFORM; }
