Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 65624:39b9e9de372b
Add a new warning gategory, ResourceWarning, as discussed on python-dev. It is silent by default,
except when configured --with-pydebug.
Emit this warning from the GC shutdown procedure, rather than just printing to stderr.
| author | Georg Brandl <georg@python.org> |
|---|---|
| date | Sun, 24 Oct 2010 15:11:22 +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; }
