Mercurial > cpython-lru_cache-weakref
view Python/getplatform.c @ 18333:41243cb4ea05 legacy-trunk
Another "if 0:" hack, this time to complain about otherwise invisible
"return expr" instances in generators (which latter may be generators
due to otherwise invisible "yield" stmts hiding in "if 0" blocks).
This was fun the first time, but this has gotten truly ugly now.
| author | Tim Peters <tim.peters@gmail.com> |
|---|---|
| date | Thu, 28 Jun 2001 01:52: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; }
